package com.qmyx.supply.admin.utils;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.aliyun.oss.OSSClient;
import com.ytjj.qmyx.supplychain.common.model.response.Api99Response;
import com.ytjj.qmyx.supplychain.common.exception.ApiException;
import com.ytjj.qmyx.supplychain.common.utils.HttpClientUtil;
import com.ytjj.qmyx.supplychain.common.utils.HttpParamUtil;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.fileupload.FileItem;
import org.apache.commons.fileupload.FileItemFactory;
import org.apache.commons.fileupload.disk.DiskFileItemFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.util.CollectionUtils;
import org.springframework.util.StringUtils;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.commons.CommonsMultipartFile;

import java.io.*;
import java.net.URISyntaxException;
import java.net.URL;
import java.net.URLConnection;
import java.util.*;

@Slf4j
@RefreshScope
public class Api99Util {
    private static final String APIKEY = "xxx";
    @Value("${banker.imgurl:}")// /tmp/banker_img/
    private String IMG_PATH;

    /**
     * 淘宝
     *
     * @return
     */
    public static Api99Response send(String itemId, Integer type) {
        String url = null;
        switch (type) {
            case 4:
                url = "https://api03.6bqb.com/jd/detail";
                break;
            case 1:
                url = "https://api03.6bqb.com/app/taobao/detail";
                break;
            case 2:
                url = "https://api03.6bqb.com/tmall/appDetail";
                break;
            case 3:
                url = "https://api03.6bqb.com/alibaba/app/detail";
                break;
        }
        if (StringUtils.isEmpty(url)) {
            throw new ApiException("参数错误！");
        }
        Map<String, String> params = new HashMap<>();
        if (1 == type || 2 == type || 3 == type) {
            params.put("itemId", itemId);
        }else if (4 == type) {
            params.put("itemid", itemId);
        }
        params.put("apikey", APIKEY);
        String result = HttpClientUtil.doGet(url, params);
        System.out.println(result);
        if (StringUtils.isEmpty(result)) {
            return null;
        }
        if (1 == type) {
            return resolveResultByTaobao(result);
        } else if (2 == type) {
            return resolveResultByTmall(result);
        } else if (3 == type) {
            return resolveResultBy1688(result);
        } else if (4 == type) {
            return resolveResultByJD(result);
        }
        return null;
    }

    /**
     * 解析返回结果-淘宝
     *
     * @param result
     * @return
     */
    public static Api99Response resolveResultByTaobao(String result) {
        HashMap hashMap = JSONObject.parseObject(result, HashMap.class);
        String dataJson = hashMap.get("data").toString();//返回的数据
        HashMap dataMap = JSONObject.parseObject(dataJson, HashMap.class);

        String itemJson = dataMap.get("item").toString();//商品信息
        HashMap itemMap = JSONObject.parseObject(itemJson, HashMap.class);

        String title = itemMap.get("title").toString();//商品标题
        String subTitle = (String) itemMap.get("subTitle");//商品副标题
//        String descUrl = (String) itemMap.get("descUrl");//商品描述图片

        String skuJson = itemMap.get("sku").toString();//单品
        List<HashMap> skuList = JSONArray.parseArray(skuJson, HashMap.class);
        List<String> skuImgs = new LinkedList<>();
        if (!CollectionUtils.isEmpty(skuList)) {
            skuList.stream().forEach(item -> {
                skuImgs.add((String) item.get("image"));
            });
        }

        String descImgsJson = itemMap.get("descImgs").toString();//图片描述
        List<String> descImgList = JSONArray.parseArray(descImgsJson, String.class);
        String imagesJson = itemMap.get("images").toString();//图片合计
        List<String> imagesList = JSONArray.parseArray(imagesJson, String.class);

        Api99Util util = new Api99Util();
        OSSClient ossClient = AliyunOSSClientUtil.getOSSClient();
        List<String> ossDescImgList = uploadOss(descImgList, util, ossClient);
        List<String> ossImageList = uploadOss(imagesList, util, ossClient);
        List<String> ossSkuImgList = uploadOss(skuImgs, util, ossClient);

        Api99Response response = Api99Response.builder()
                .title(title)
                .subTitle(subTitle)
                .descImgList(ossDescImgList)
//                .descUrl(descUrl)
                .imagesList(ossImageList)
                .skuImgs(ossSkuImgList)
                .build();
        return response;
    }

    /**
     * 解析返回结果-天猫
     *
     * @param result
     * @return
     */
    public static Api99Response resolveResultByTmall(String result) {
        HashMap hashMap = JSONObject.parseObject(result, HashMap.class);
        String dataJson = hashMap.get("data").toString();//返回的数据
        HashMap dataMap = JSONObject.parseObject(dataJson, HashMap.class);

        String itemJson = dataMap.get("item").toString();//商品信息
        HashMap itemMap = JSONObject.parseObject(itemJson, HashMap.class);

        String title = itemMap.get("title").toString();//商品标题
        String subTitle = (String) itemMap.get("subTitle");//商品副标题
//        String descUrl = (String) itemMap.get("descUrl");//商品描述图片

        String skuJson = itemMap.get("sku").toString();//单品
        List<HashMap> skuList = JSONArray.parseArray(skuJson, HashMap.class);
        List<String> skuImgs = new LinkedList<>();
        if (!CollectionUtils.isEmpty(skuList)) {
            skuList.stream().forEach(item -> {
                skuImgs.add((String) item.get("image"));
            });
        }

        String descImgsJson = itemMap.get("descImgs").toString();//图片描述
        List<String> descImgList = JSONArray.parseArray(descImgsJson, String.class);
        String imagesJson = itemMap.get("images").toString();//图片合计
        List<String> imagesList = JSONArray.parseArray(imagesJson, String.class);

        Api99Util util = new Api99Util();
        OSSClient ossClient = AliyunOSSClientUtil.getOSSClient();
        List<String> ossImagesList = uploadOss(imagesList, util, ossClient);
        List<String> ossDescImgList = uploadOss(descImgList, util, ossClient);
        List<String> ossSkuImgsList = uploadOss(skuImgs, util, ossClient);

        Api99Response response = Api99Response.builder()
                .title(title)
                .subTitle(subTitle)
                .descImgList(ossDescImgList)
//                .descUrl(descUrl)
                .imagesList(ossImagesList)
                .skuImgs(ossSkuImgsList)
                .build();
        return response;
    }

    /**
     * 解析返回结果-阿里巴巴1688
     *
     * @param result
     * @return
     */
    public static Api99Response resolveResultBy1688(String result) {
        HashMap hashMap = JSONObject.parseObject(result, HashMap.class);
        String dataJson = hashMap.get("data").toString();//返回的数据
        HashMap dataMap = JSONObject.parseObject(dataJson, HashMap.class);

//        String itemJson = dataMap.get("item").toString();//商品信息
//        HashMap itemMap = JSONObject.parseObject(itemJson, HashMap.class);

        String title = dataMap.get("title").toString();//商品标题
//        String subTitle = (String) dataMap.get("subTitle");//商品副标题
//        String descUrl = (String) dataMap.get("descUrl");//网址描述

        String skuJson = dataMap.get("skuProps").toString();//单品
        List<HashMap> skuList = JSONArray.parseArray(skuJson, HashMap.class);
        List<String> skuImgs = new LinkedList<>();
        if (!CollectionUtils.isEmpty(skuList)) {
            Map<String, Object> valueJsonStr = skuList.get(0);
            List<HashMap> valueList = JSONArray.parseArray(valueJsonStr.get("value").toString(), HashMap.class);
            valueList.stream().forEach(item -> {
                if (null != item.get("imageUrl")) {
                    skuImgs.add(item.get("imageUrl").toString());
                }
            });
        }

//        String descImgsJson = dataMap.get("descImgs").toString();//图片描述
//        List<String> descImgList = JSONArray.parseArray(descImgsJson, String.class);
        String imagesJson = dataMap.get("images").toString();//图片合计
        List<String> imagesList = JSONArray.parseArray(imagesJson, String.class);

        OSSClient ossClient = AliyunOSSClientUtil.getOSSClient();
        Api99Util util = new Api99Util();
        List<String> ossImgList = uploadOss(imagesList, util, ossClient);
//        if (!CollectionUtils.isEmpty(imagesList)) {
//            imagesList.stream().forEach(item -> {
//                String filePath = util.download(item);
//                if (!StringUtils.isEmpty(filePath)) {
//                    File file = new File(filePath);
//                    try {
//                        MultipartFile multipartFile = fileToMultipartFile(file);
//                        ossImgList.add(AliyunOSSClientUtil.uploadObject2OSS(ossClient, multipartFile).getUrl());
//                    } catch (URISyntaxException e) {
//                        e.printStackTrace();
//                    }
//                }
//            });
//        }

        List<String> skuImgsList = uploadOss(skuImgs, util, ossClient);

        Api99Response response = Api99Response.builder()
                .title(title)
//                .subTitle(subTitle)
//                .descImgList(descImgList)
//                .descUrl(descUrl)
                .imagesList(ossImgList)
                .skuImgs(skuImgsList)
                .build();
        return response;
    }

    private static List<String> uploadOss(List<String> imagesList, Api99Util util, OSSClient ossClient) {
        if (CollectionUtils.isEmpty(imagesList)) {
            return new ArrayList<>();
        }
        List<String> returnList = new LinkedList<>();
        imagesList.stream().forEach(item -> {
            String filePath = util.download(item);
            if (!StringUtils.isEmpty(filePath)) {
                File file = new File(filePath);
                try {
                    MultipartFile multipartFile = fileToMultipartFile(file);
                    returnList.add(AliyunOSSClientUtil.uploadObject2OSS(ossClient, multipartFile).getUrl());
                } catch (URISyntaxException e) {
                    e.printStackTrace();
                }
            }
        });
        return returnList;
    }


    /**
     * 解析返回结果-京东
     *
     * @param result
     * @return
     */
    public static Api99Response resolveResultByJD(String result) {
        HashMap hashMap = JSONObject.parseObject(result, HashMap.class);
        String dataJson = hashMap.get("data").toString();//返回的数据
        HashMap dataMap = JSONObject.parseObject(dataJson, HashMap.class);

        String itemJson = dataMap.get("item").toString();//商品信息
        HashMap itemMap = JSONObject.parseObject(itemJson, HashMap.class);

        String title = itemMap.get("name").toString();//商品标题
//        String subTitle = (String) itemMap.get("subTitle");//商品副标题
//        String descUrl = (String) itemMap.get("desc");//描述

//        String skuJson = itemMap.get("sku").toString();//单品
//        List<HashMap> skuList = JSONArray.parseArray(skuJson, HashMap.class);
//        List<String> skuImgs = new LinkedList<>();
//        if (!CollectionUtils.isEmpty(skuList)) {
//            skuList.stream().forEach(item -> {
//                skuImgs.add((String)item.get("image"));
//            });
//        }

        String descImgsJson = itemMap.get("descImgs").toString();//图片描述
        List<String> descImgList = JSONArray.parseArray(descImgsJson, String.class);
        String imagesJson = itemMap.get("images").toString();//图片合计
        List<String> imagesList = JSONArray.parseArray(imagesJson, String.class);

        OSSClient ossClient = AliyunOSSClientUtil.getOSSClient();
        Api99Util util = new Api99Util();
        List<String> ossImgList = uploadOss(imagesList, util, ossClient);
//        if (!CollectionUtils.isEmpty(imagesList)) {
////            imagesList.stream().forEach(item -> {
////                String filePath = util.download(item);
////                if (!StringUtils.isEmpty(filePath)) {
////                    File file = new File(filePath);
////                    try {
////                        MultipartFile multipartFile = fileToMultipartFile(file);
////                        ossImgList.add(AliyunOSSClientUtil.uploadObject2OSS(ossClient, multipartFile).getUrl());
////                    } catch (URISyntaxException e) {
////                        e.printStackTrace();
////                    }
////                }
////            });
////        }
        List<String> ossDescImgList = uploadOss(descImgList, util, ossClient);
//        if (!CollectionUtils.isEmpty(descImgList)) {
//            descImgList.stream().forEach(item -> {
//                String filePath = util.download(item);
//                if (!StringUtils.isEmpty(filePath)) {
//                    File file = new File(filePath);
//                    try {
//                        MultipartFile multipartFile = fileToMultipartFile(file);
//                        ossDescImgList.add(AliyunOSSClientUtil.uploadObject2OSS(ossClient, multipartFile).getUrl());
//                    } catch (URISyntaxException e) {
//                        e.printStackTrace();
//                    }
//                }
//            });
//        }

        Api99Response response = Api99Response.builder()
                .title(title)
//                .subTitle(subTitle)
                .descImgList(ossDescImgList)
//                .descUrl(descUrl)
                .imagesList(ossImgList)
//                .skuImgs(skuImgs)
                .build();
        return response;
    }

    public static void main(String[] args) {
//        String result = "{\"dataType\":\"detail\",\"appCode\":\"tbAppGoodsDetail\",\"version\":\"1.0\",\"retcode\":\"0000\",\"hasNext\":true,\"page\":0,\"data\":{\"seller\":{\"sellerNick\":\"昌盛嘉德旗舰店\",\"goodRatePercentage\":\"100.00\",\"shopName\":\"昌盛嘉德旗舰店\",\"shopIcon\":\"//img.alicdn.com/imgextra//82/4b/TB1GZtneoWF3KVjSZPhwu0clXXa.png\",\"evaluates\":[{\"score\":\"4.9 \",\"level\":\"1\",\"levelText\":\"高\",\"title\":\"宝贝描述\",\"type\":\"desc\"},{\"score\":\"4.8 \",\"level\":\"1\",\"levelText\":\"高\",\"title\":\"卖家服务\",\"type\":\"serv\"},{\"score\":\"4.9 \",\"level\":\"1\",\"levelText\":\"高\",\"title\":\"物流服务\",\"type\":\"post\"}],\"shopUrl\":\"tmall://page.tm/shop?item_id=605314223244&shopId=386789259\",\"userId\":\"2200799288073\",\"fans\":\"338\",\"itemCount\":\"9\",\"taoShopUrl\":\"https://shop386789259.taobao.com/\",\"creditLevel\":\"8\",\"creditLevelIcon\":\"//gw.alicdn.com/tfs/TB1QoJUIwmTBuNjy1XbXXaMrVXa8436.png?getAvatar=avatar\",\"shopId\":\"386789259\",\"starts\":\"20190404 22:51:56\"},\"item\":{\"bonus\":{\"linkWriting\":\"领券\",\"linkUrl\":\"https://pages.tmall.com/wow/malldetail/act/detailquan?wh_weex=true&wh_biz=tm\",\"allowance\":{\"useHuaBian\":\"false\",\"icon\":\"//gw.alicdn.com/tfs/TB1FKboXROD3KVjSZFFXXcn9pXa22636.png\",\"title\":\"领津贴每满400减50\"},\"shopProm\":{\"iconText\":\"积分\",\"useHuaBian\":\"false\",\"title\":\"购买可得175积分\"}},\"marketPriceRange\":\"6201720\",\"videos\":[{\"videoThumbnailURL\":\"https://img.alicdn.com/imgextra/i3/2200799288073/O1CN01wvDuz429VU0MKpEdT_!!2200799288073.jpg\",\"interactiveInfo\":{\"userId\":\"2200799288073\",\"interactiveId\":\"495649117\"},\"weexRecommendUrl\":\"https://market.m.taobao.com/apps/market/detailrax/recommenditems.html?spm=a2116h.app.0.0.16d957e9U2bxVj&wh_weex=true&itemId=605314223244\",\"videoId\":\"237813176973\",\"anchors\":[{\"endTime\":\"27000\",\"desc\":\"颜色\"}],\"type\":\"3\",\"spatialVideoDimension\":\"3:4\",\"url\":\"https://cloud.video.taobao.com/play/u/2200799288073/p/2/e/6/t/1/237813176973.mp4?appKey=38829\"}],\"title\":\"简易衣柜现代简约出租房用实木质组装儿童推拉门衣橱收纳柜子卧室\",\"subTitle\":\"升级为双贴面板材，防潮防霉\",\"descUrl\":\"http://h5.m.taobao.com/app/detail/desc.html?_isH5Des=true!id=605314223244&type=0&f=TB1rCmojWL7gK0jSZFB8qtZZpla&sellerType=B\",\"sku\":[{\"quantity\":\"11862\",\"price\":\"350899\",\"propPath\":\"\",\"skuId\":\"0\"},{\"skuName\":\"颜色分类【浅胡桃】宽80高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i2/2200799288073/O1CN01cRRKkP29VU0CmMOne_!!2200799288073.jpg\",\"quantity\":\"490\",\"price\":\"350\",\"propPath\":\"1627207:3232483;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269013\"},{\"skuName\":\"颜色分类【暖白色】宽80高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i3/2200799288073/O1CN01RmsGNV29VU0AfRda6_!!2200799288073.jpg\",\"quantity\":\"493\",\"price\":\"350\",\"propPath\":\"1627207:3232484;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269014\"},{\"skuName\":\"颜色分类【浅胡桃+暖白】宽80高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN01puQzjE29VU0DTCujM_!!2200799288073.jpg\",\"quantity\":\"493\",\"price\":\"350\",\"propPath\":\"1627207:3232481;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269015\"},{\"skuName\":\"颜色分类【柚木色】宽80高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN01neGe4y29VU0ClCq1C_!!2200799288073.jpg\",\"quantity\":\"493\",\"price\":\"350\",\"propPath\":\"1627207:90554;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269036\"},{\"skuName\":\"颜色分类【浅胡桃】宽100高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN01jRWs2U29VU0EydovN_!!2200799288073.jpg\",\"quantity\":\"479\",\"price\":\"440\",\"propPath\":\"1627207:28332;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269016\"},{\"skuName\":\"颜色分类【暖白色】宽100高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i2/2200799288073/O1CN01AfmVMk29VU0FXXE71_!!2200799288073.jpg\",\"quantity\":\"493\",\"price\":\"440\",\"propPath\":\"1627207:30156;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269017\"},{\"skuName\":\"颜色分类【浅胡桃+暖白】宽100高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i1/2200799288073/O1CN01JWrIcW29VU0CJdvN7_!!2200799288073.jpg\",\"quantity\":\"495\",\"price\":\"440\",\"propPath\":\"1627207:60092;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269018\"},{\"skuName\":\"颜色分类【柚木色】宽100高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN01vTTcP429VU0CmOY8I_!!2200799288073.jpg\",\"quantity\":\"497\",\"price\":\"440\",\"propPath\":\"1627207:3232482;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269019\"},{\"skuName\":\"颜色分类【浅胡桃】宽120高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i1/2200799288073/O1CN01Gu6Dc729VU0CkzLNK_!!2200799288073.jpg\",\"quantity\":\"496\",\"price\":\"460\",\"propPath\":\"1627207:3232478;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269020\"},{\"skuName\":\"颜色分类【暖白色】宽120高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN01GatHxN29VU04qxzMX_!!2200799288073.jpg\",\"quantity\":\"495\",\"price\":\"460\",\"propPath\":\"1627207:3232479;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269021\"},{\"skuName\":\"颜色分类【浅胡桃+暖白】宽120高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i2/2200799288073/O1CN01p4s4JW29VU0FXZ6tT_!!2200799288073.jpg\",\"quantity\":\"496\",\"price\":\"460\",\"propPath\":\"1627207:28340;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269022\"},{\"skuName\":\"颜色分类【柚木色】宽120高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN01jucn1g29VU0CkyfuD_!!2200799288073.jpg\",\"quantity\":\"495\",\"price\":\"460\",\"propPath\":\"1627207:28320;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269023\"},{\"skuName\":\"颜色分类【浅胡桃】宽140高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i2/2200799288073/O1CN01Nokaw029VU0ClB5mY_!!2200799288073.jpg\",\"quantity\":\"494\",\"price\":\"540\",\"propPath\":\"1627207:3232480;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269024\"},{\"skuName\":\"颜色分类【暖白色】宽140高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i1/2200799288073/O1CN01RoKzW929VU0C1YAkc_!!2200799288073.jpg\",\"quantity\":\"493\",\"price\":\"540\",\"propPath\":\"1627207:80882;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269025\"},{\"skuName\":\"颜色分类【浅胡桃+暖白】宽140高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i2/2200799288073/O1CN014ZswCQ29VU0EFLiV8_!!2200799288073.jpg\",\"quantity\":\"490\",\"price\":\"540\",\"propPath\":\"1627207:28329;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269026\"},{\"skuName\":\"颜色分类【柚木色】宽140高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i3/2200799288073/O1CN01TcZXjG29VU0ClAl11_!!2200799288073.jpg\",\"quantity\":\"493\",\"price\":\"540\",\"propPath\":\"1627207:28326;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269027\"},{\"skuName\":\"颜色分类【浅胡桃】宽160高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i3/2200799288073/O1CN01oTRa8929VU0E4zZjE_!!2200799288073.jpg\",\"quantity\":\"496\",\"price\":\"639\",\"propPath\":\"1627207:28335;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269028\"},{\"skuName\":\"颜色分类【暖白色】宽160高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN01wF2Coz29VU0Cmapoy_!!2200799288073.jpg\",\"quantity\":\"498\",\"price\":\"639\",\"propPath\":\"1627207:130164;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269029\"},{\"skuName\":\"颜色分类【浅胡桃+暖白】宽160高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN017FoE2429VU0EyvGzk_!!2200799288073.jpg\",\"quantity\":\"500\",\"price\":\"639\",\"propPath\":\"1627207:28338;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269030\"},{\"skuName\":\"颜色分类【柚木色】宽160高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN01KLHvSZ29VU0DTUAS9_!!2200799288073.jpg\",\"quantity\":\"499\",\"price\":\"639\",\"propPath\":\"1627207:132069;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269031\"},{\"skuName\":\"颜色分类【衣柜+顶柜】宽100高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i2/2200799288073/O1CN01jtJKL929VU09UrgAo_!!2200799288073.jpg\",\"quantity\":\"492\",\"price\":\"630\",\"propPath\":\"1627207:107121;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269032\"},{\"skuName\":\"颜色分类【衣柜+顶柜】宽120高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i2/2200799288073/O1CN01Nnxl5T29VU0ASu5FO_!!2200799288073.jpg\",\"quantity\":\"496\",\"price\":\"700\",\"propPath\":\"1627207:28327;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269033\"},{\"skuName\":\"颜色分类【衣柜+顶柜】宽140高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i1/2200799288073/O1CN012p8NER29VU0Afk68u_!!2200799288073.jpg\",\"quantity\":\"497\",\"price\":\"751\",\"propPath\":\"1627207:28324;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269034\"},{\"skuName\":\"颜色分类【衣柜+顶柜】宽160高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i1/2200799288073/O1CN01UN9QxN29VU0G2WcNS_!!2200799288073.jpg\",\"quantity\":\"499\",\"price\":\"899\",\"propPath\":\"1627207:28341;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269035\"}],\"extraPrices\":[{\"sugProm\":\"false\",\"priceTitle\":\"价格\",\"showTitle\":\"true\",\"lineThrough\":\"true\",\"priceText\":\"6201720\"}],\"shopProm\":[{\"activityId\":\"0\",\"iconText\":\"积分\",\"title\":\"购买可得175积分\",\"type\":\"5\",\"content\":[\"购买可得175积分\"]}],\"descImgs\":[\"//assets.alicdn.com/kissy/1.0.0/build/imglazyload/spaceball.gif\",\"//img.alicdn.com/imgextra/i4/T2s4moXH8XXXXXXXXX350475995.png?p=hb_v3_client_1084049_start_top_1\",\"//img.alicdn.com/imgextra/i1/2200799288073/O1CN01z2FgGl29VU0MnUMLy_!!2200799288073.jpg\",\"//img.alicdn.com/imgextra/i1/2200799288073/O1CN01aNxlTq29VU0Q7CMoS_!!2200799288073.jpg\",\"//img.alicdn.com/imgextra/i4/T2s4moXH8XXXXXXXXX350475995.png?p=hb_v3_client_1084049_end_top_1\",\"//img.alicdn.com/imgextra/i3/2200799288073/O1CN01equlQh29VU0ClXVoQ_!!2200799288073.jpg\",\"//img.alicdn.com/imgextra/i2/2200799288073/O1CN01aU83VY29VU0CYC4Fi_!!2200799288073.jpg\",\"//img.alicdn.com/imgextra/i2/2200799288073/O1CN01ALmLm229VU0FWclof_!!2200799288073.jpg\",\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN01cNZaEu29VU0AeiFjX_!!2200799288073.jpg\",\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN01WEsmmL29VU0Ck9NkH_!!2200799288073.jpg\",\"//img.alicdn.com/imgextra/i2/2200799288073/O1CN018iTaAA29VU0CIoMj1_!!2200799288073.jpg\",\"//img.alicdn.com/imgextra/i2/2200799288073/O1CN01XtJBVW29VU0ExrorA_!!2200799288073.jpg\",\"//img.alicdn.com/imgextra/i2/2200799288073/O1CN01p1u12S29VU0EEMpNb_!!2200799288073.jpg\",\"//img.alicdn.com/imgextra/i2/2200799288073/O1CN018LeisG29VU0FWddrl_!!2200799288073.jpg\",\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN01apYcgf29VU0CYC06z_!!2200799288073.jpg\",\"//img.alicdn.com/imgextra/i3/2200799288073/O1CN01H2peHO29VU0AeiSE6_!!2200799288073.jpg\",\"//img.alicdn.com/imgextra/i1/2200799288073/O1CN01ML7R9m29VU0DSNxYB_!!2200799288073.jpg\",\"//img.alicdn.com/imgextra/i1/2200799288073/O1CN01ne4rS329VU0FWdi2J_!!2200799288073.jpg\",\"//img.alicdn.com/imgextra/i2/2200799288073/O1CN01JRDpsE29VU0C0Z5Bi_!!2200799288073.jpg\",\"//img.alicdn.com/imgextra/i3/2200799288073/O1CN01UnMhlP29VU0GU4zYT_!!2200799288073.jpg\",\"//img.alicdn.com/imgextra/i1/2200799288073/O1CN01ppTzor29VU0AefImf_!!2200799288073.jpg\"],\"delivery\":\"0.00\",\"vagueSellCount\":\"117\",\"images\":[\"//img.alicdn.com/imgextra/i3/2200799288073/O1CN01FVyKqo29VU0ONjGn3_!!2200799288073.jpg\",\"//img.alicdn.com/imgextra/i3/2200799288073/O1CN01jwgTJ529VU0FMUPO0_!!2200799288073.jpg\",\"//img.alicdn.com/imgextra/i3/2200799288073/O1CN01mLJs4929VU0GJouD9_!!2200799288073.jpg\",\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN01P7VmA929VU0KsYs5X_!!2200799288073.jpg\",\"//img.alicdn.com/imgextra/i1/2200799288073/O1CN01JQE9b529VU0JyWWfS_!!2200799288073.jpg\"],\"favouriteCount\":\"274\",\"consumerProtection\":{\"displayService\":{\"wyg\":\"false\",\"name\":\"基础保障\",\"services\":[{\"name\":\"假一赔四\",\"icon\":\"//img.alicdn.com/tfs/TB1_YjSjeL2gK0jSZPhXXahvXXa5454.png\",\"serviceId\":\"3839\",\"priority\":\"12900\",\"desc\":[\"正品保障，假一赔四\"]},{\"name\":\"退货运费险\",\"icon\":\"//img.alicdn.com/tfs/TB1_YjSjeL2gK0jSZPhXXahvXXa5454.png\",\"serviceId\":\"3852\",\"priority\":\"6580\",\"desc\":[\"卖家投保退货运费险，负担一定金额退货运费（保单生效以下单显示为准）\"]},{\"name\":\"三年质保\",\"icon\":\"//img.alicdn.com/tfs/TB1_YjSjeL2gK0jSZPhXXahvXXa5454.png\",\"serviceId\":\"5319\",\"priority\":\"6550\",\"desc\":[\"交易成功15天后的三年内出现质量问题，商家在规定时间内通过免费维修或免费更换商品或免费补寄零配件或补偿质保基金等方式保障消费者权益\"]},{\"name\":\"七天无理由退换\",\"icon\":\"//img.alicdn.com/tfs/TB1_YjSjeL2gK0jSZPhXXahvXXa5454.png\",\"serviceId\":\"2972\",\"priority\":\"5130\",\"desc\":[\"满足相应条件时，消费者可申请 “七天无理由退换货”\"]},{\"name\":\"公益宝贝\",\"icon\":\"//img.alicdn.com/tfs/TB1_YjSjeL2gK0jSZPhXXahvXXa5454.png\",\"serviceId\":\"4356\",\"priority\":\"0\",\"desc\":[\"购买该商品,每笔成交都会有相应金额捐赠给公益.感谢您的支持,愿公益的快乐伴随您每一天.\"]}]},\"strength\":\"normal\",\"serviceProtection\":{\"basicService\":{\"name\":\"基础保障\",\"id\":\"204\",\"services\":[{\"name\":\"假一赔四\",\"icon\":\"//img.alicdn.com/tfs/TB1_YjSjeL2gK0jSZPhXXahvXXa5454.png\",\"serviceId\":\"3839\",\"priority\":\"12900\",\"desc\":[\"正品保障，假一赔四\"]},{\"name\":\"退货运费险\",\"icon\":\"//img.alicdn.com/tfs/TB1_YjSjeL2gK0jSZPhXXahvXXa5454.png\",\"serviceId\":\"3852\",\"priority\":\"6580\",\"desc\":[\"卖家投保退货运费险，负担一定金额退货运费（保单生效以下单显示为准）\"]},{\"name\":\"三年质保\",\"icon\":\"//img.alicdn.com/tfs/TB1_YjSjeL2gK0jSZPhXXahvXXa5454.png\",\"serviceId\":\"5319\",\"priority\":\"6550\",\"desc\":[\"交易成功15天后的三年内出现质量问题，商家在规定时间内通过免费维修或免费更换商品或免费补寄零配件或补偿质保基金等方式保障消费者权益\"]},{\"name\":\"七天无理由退换\",\"icon\":\"//img.alicdn.com/tfs/TB1_YjSjeL2gK0jSZPhXXahvXXa5454.png\",\"serviceId\":\"2972\",\"priority\":\"5130\",\"desc\":[\"满足相应条件时，消费者可申请 “七天无理由退换货”\"]},{\"name\":\"公益宝贝\",\"icon\":\"//img.alicdn.com/tfs/TB1_YjSjeL2gK0jSZPhXXahvXXa5454.png\",\"serviceId\":\"4356\",\"priority\":\"0\",\"desc\":[\"购买该商品,每笔成交都会有相应金额捐赠给公益.感谢您的支持,愿公益的快乐伴随您每一天.\"]}]}},\"passValue\":\"none\",\"channel4X\":{\"forced\":\"true\",\"logo\":\"https://img.alicdn.com/tps/TB1oOOvNXXXXXbmaFXXXXXXXXXX3939.png\",\"title\":\"天猫新品\"},\"channel\":{\"forced\":\"true\",\"logo\":\"https://img.alicdn.com/tps/TB1oOOvNXXXXXbmaFXXXXXXXXXX3939.png\",\"title\":\"天猫新品\"},\"params\":\"204:3838,5319,3851,2973,4356\",\"items\":[{\"serviceId\":\"3838\",\"title\":\"假一赔四\",\"type\":\"0\",\"priority\":\"12900\",\"desc\":\"正品保障，假一赔四\"},{\"serviceId\":\"5319\",\"title\":\"三年质保\",\"type\":\"0\",\"priority\":\"6550\",\"desc\":\"交易成功15天后的三年内出现质量问题，商家在规定时间内通过免费维修或免费更换商品或免费补寄零配件或补偿质保基金等方式保障消费者权益\"},{\"serviceId\":\"3851\",\"title\":\"退货运费险\",\"type\":\"0\",\"priority\":\"6504\",\"desc\":\"卖家投保退货运费险，负担一定金额退货运费（保单生效以下单显示为准）\"},{\"serviceId\":\"2973\",\"title\":\"七天无理由退换\",\"type\":\"0\",\"priority\":\"5130\",\"desc\":\"满足相应条件时，消费者可申请 “七天无理由退换货”\"},{\"serviceId\":\"4356\",\"title\":\"公益宝贝\",\"type\":\"0\",\"priority\":\"0\",\"desc\":\"购买该商品,每笔成交都会有相应金额捐赠给公益.感谢您的支持,愿公益的快乐伴随您每一天.\"}]},\"groupProps\":[{\"基本信息\":[{\"品牌\":\"昌盛嘉德\"},{\"型号\":\"07979\"},{\"材质\":\"人造板\"},{\"人造板种类\":\"刨花板/三聚氰胺板\"},{\"图案\":\"其他\"},{\"风格\":\"简约现代\"},{\"颜色分类\":\"【浅胡桃】宽80高180深50 【暖白色】宽80高180深50 【浅胡桃+暖白】宽80高180深50 【柚木色】宽80高180深50 【浅胡桃】宽100高180深50 【暖白色】宽100高180深50 【浅胡桃+暖白】宽100高180深50 【柚木色】宽100高180深50 【浅胡桃】宽120高180深50 【暖白色】宽120高180深50 【浅胡桃+暖白】宽120高180深50 【柚木色】宽120高180深50 【浅胡桃】宽140高180深50 【暖白色】宽140高180深50 【浅胡桃+暖白】宽140高180深50 【柚木色】宽140高180深50 【浅胡桃】宽160高180深50 【暖白色】宽160高180深50 【浅胡桃+暖白】宽160高180深50 【柚木色】宽160高180深50 【衣柜+顶柜】宽100高180深50 【衣柜+顶柜】宽120高180深50 【衣柜+顶柜】宽140高180深50 【衣柜+顶柜】宽160高180深50\"},{\"饰面材质\":\"三聚氰胺板\"},{\"三聚氰氨饰面工艺\":\"光面\"},{\"是否可定制\":\"是\"},{\"门数量\":\"2门\"},{\"附加功能\":\"储藏\"},{\"适用对象\":\"成人\"},{\"开合方式\":\"推拉滑移门\"},{\"产地\":\"江苏省\"},{\"地市\":\"宿迁市\"},{\"区县\":\"宿城区\"},{\"是否组装\":\"组装\"},{\"包装体积\":\"0.6\"},{\"是否可预售\":\"否\"},{\"出租车是否可运输\":\"否\"},{\"设计元素\":\"其他 大师设计\"},{\"款式定位\":\"经济型\"},{\"安装说明详情\":\"提供安装说明书 提供安装说明视频 提供简单安装工具\"},{\"衣柜类型\":\"儿童衣柜 成人衣柜\"}]}],\"url\":\"https://item.taobao.com/item.htm?id=605314223244\",\"rootCategoryId\":\"50008164\",\"commentCount\":\"47\",\"props\":[{\"values\":[{\"vid\":\"3232483\",\"image\":\"//img.alicdn.com/imgextra/i2/2200799288073/O1CN01cRRKkP29VU0CmMOne_!!2200799288073.jpg\",\"name\":\"【浅胡桃】宽80高180深50\"},{\"vid\":\"3232484\",\"image\":\"//img.alicdn.com/imgextra/i3/2200799288073/O1CN01RmsGNV29VU0AfRda6_!!2200799288073.jpg\",\"name\":\"【暖白色】宽80高180深50\"},{\"vid\":\"3232481\",\"image\":\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN01puQzjE29VU0DTCujM_!!2200799288073.jpg\",\"name\":\"【浅胡桃+暖白】宽80高180深50\"},{\"vid\":\"90554\",\"image\":\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN01neGe4y29VU0ClCq1C_!!2200799288073.jpg\",\"name\":\"【柚木色】宽80高180深50\"},{\"vid\":\"28332\",\"image\":\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN01jRWs2U29VU0EydovN_!!2200799288073.jpg\",\"name\":\"【浅胡桃】宽100高180深50\"},{\"vid\":\"30156\",\"image\":\"//img.alicdn.com/imgextra/i2/2200799288073/O1CN01AfmVMk29VU0FXXE71_!!2200799288073.jpg\",\"name\":\"【暖白色】宽100高180深50\"},{\"vid\":\"60092\",\"image\":\"//img.alicdn.com/imgextra/i1/2200799288073/O1CN01JWrIcW29VU0CJdvN7_!!2200799288073.jpg\",\"name\":\"【浅胡桃+暖白】宽100高180深50\"},{\"vid\":\"3232482\",\"image\":\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN01vTTcP429VU0CmOY8I_!!2200799288073.jpg\",\"name\":\"【柚木色】宽100高180深50\"},{\"vid\":\"3232478\",\"image\":\"//img.alicdn.com/imgextra/i1/2200799288073/O1CN01Gu6Dc729VU0CkzLNK_!!2200799288073.jpg\",\"name\":\"【浅胡桃】宽120高180深50\"},{\"vid\":\"3232479\",\"image\":\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN01GatHxN29VU04qxzMX_!!2200799288073.jpg\",\"name\":\"【暖白色】宽120高180深50\"},{\"vid\":\"28340\",\"image\":\"//img.alicdn.com/imgextra/i2/2200799288073/O1CN01p4s4JW29VU0FXZ6tT_!!2200799288073.jpg\",\"name\":\"【浅胡桃+暖白】宽120高180深50\"},{\"vid\":\"28320\",\"image\":\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN01jucn1g29VU0CkyfuD_!!2200799288073.jpg\",\"name\":\"【柚木色】宽120高180深50\"},{\"vid\":\"3232480\",\"image\":\"//img.alicdn.com/imgextra/i2/2200799288073/O1CN01Nokaw029VU0ClB5mY_!!2200799288073.jpg\",\"name\":\"【浅胡桃】宽140高180深50\"},{\"vid\":\"80882\",\"image\":\"//img.alicdn.com/imgextra/i1/2200799288073/O1CN01RoKzW929VU0C1YAkc_!!2200799288073.jpg\",\"name\":\"【暖白色】宽140高180深50\"},{\"vid\":\"28329\",\"image\":\"//img.alicdn.com/imgextra/i2/2200799288073/O1CN014ZswCQ29VU0EFLiV8_!!2200799288073.jpg\",\"name\":\"【浅胡桃+暖白】宽140高180深50\"},{\"vid\":\"28326\",\"image\":\"//img.alicdn.com/imgextra/i3/2200799288073/O1CN01TcZXjG29VU0ClAl11_!!2200799288073.jpg\",\"name\":\"【柚木色】宽140高180深50\"},{\"vid\":\"28335\",\"image\":\"//img.alicdn.com/imgextra/i3/2200799288073/O1CN01oTRa8929VU0E4zZjE_!!2200799288073.jpg\",\"name\":\"【浅胡桃】宽160高180深50\"},{\"vid\":\"130164\",\"image\":\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN01wF2Coz29VU0Cmapoy_!!2200799288073.jpg\",\"name\":\"【暖白色】宽160高180深50\"},{\"vid\":\"28338\",\"image\":\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN017FoE2429VU0EyvGzk_!!2200799288073.jpg\",\"name\":\"【浅胡桃+暖白】宽160高180深50\"},{\"vid\":\"132069\",\"image\":\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN01KLHvSZ29VU0DTUAS9_!!2200799288073.jpg\",\"name\":\"【柚木色】宽160高180深50\"},{\"vid\":\"107121\",\"image\":\"//img.alicdn.com/imgextra/i2/2200799288073/O1CN01jtJKL929VU09UrgAo_!!2200799288073.jpg\",\"name\":\"【衣柜+顶柜】宽100高180深50\"},{\"vid\":\"28327\",\"image\":\"//img.alicdn.com/imgextra/i2/2200799288073/O1CN01Nnxl5T29VU0ASu5FO_!!2200799288073.jpg\",\"name\":\"【衣柜+顶柜】宽120高180深50\"},{\"vid\":\"28324\",\"image\":\"//img.alicdn.com/imgextra/i1/2200799288073/O1CN012p8NER29VU0Afk68u_!!2200799288073.jpg\",\"name\":\"【衣柜+顶柜】宽140高180深50\"},{\"vid\":\"28341\",\"image\":\"//img.alicdn.com/imgextra/i1/2200799288073/O1CN01UN9QxN29VU0G2WcNS_!!2200799288073.jpg\",\"name\":\"【衣柜+顶柜】宽160高180深50\"}],\"name\":\"颜色分类\",\"pid\":\"1627207\"},{\"values\":[{\"vid\":\"11555292\",\"name\":\"2门\"}],\"name\":\"门数量\",\"pid\":\"13744110\"},{\"values\":[{\"vid\":\"97926\",\"name\":\"组装\"}],\"name\":\"是否组装\",\"pid\":\"122582666\"}],\"itemId\":\"605314223244\",\"transmitPrice\":{\"sugProm\":\"false\",\"priceText\":\"350899\"},\"brandId\":\"2999831953\",\"sellCount\":\"117\",\"location\":\"江苏徐州\",\"priceRange\":\"350899\",\"categoryId\":\"50015744\",\"desc\":\"\"}}}";
//        resolveResultByTaobao(result);
//        String result = "{\"dataType\":\"appDetail\",\"appCode\":\"tbAppGoodsDetail\",\"version\":\"1.0\",\"retcode\":\"0000\",\"hasNext\":true,\"page\":0,\"data\":{\"seller\":{\"sellerNick\":\"昌盛嘉德旗舰店\",\"goodRatePercentage\":\"100.00\",\"shopName\":\"昌盛嘉德旗舰店\",\"shopIcon\":\"//img.alicdn.com/imgextra//82/4b/TB1GZtneoWF3KVjSZPhwu0clXXa.png\",\"evaluates\":[{\"score\":\"4.9 \",\"level\":\"1\",\"levelText\":\"高\",\"title\":\"宝贝描述\",\"type\":\"desc\"},{\"score\":\"4.8 \",\"level\":\"1\",\"levelText\":\"高\",\"title\":\"卖家服务\",\"type\":\"serv\"},{\"score\":\"4.9 \",\"level\":\"1\",\"levelText\":\"高\",\"title\":\"物流服务\",\"type\":\"post\"}],\"shopUrl\":\"tmall://page.tm/shop?item_id=605314223244&shopId=386789259\",\"userId\":\"2200799288073\",\"fans\":\"339\",\"itemCount\":\"9\",\"taoShopUrl\":\"https://shop386789259.taobao.com/\",\"creditLevel\":\"8\",\"creditLevelIcon\":\"//gw.alicdn.com/tfs/TB1QoJUIwmTBuNjy1XbXXaMrVXa8436.png?getAvatar=avatar\",\"shopId\":\"386789259\",\"starts\":\"20190404 22:51:56\"},\"item\":{\"bonus\":{\"linkWriting\":\"领券\",\"linkUrl\":\"https://pages.tmall.com/wow/malldetail/act/detailquan?wh_weex=true&wh_biz=tm\",\"allowance\":{\"useHuaBian\":\"false\",\"icon\":\"//gw.alicdn.com/tfs/TB1FKboXROD3KVjSZFFXXcn9pXa22636.png\",\"title\":\"领津贴每满400减50\"},\"shopProm\":{\"iconText\":\"积分\",\"useHuaBian\":\"false\",\"title\":\"购买可得175积分\"}},\"marketPriceRange\":\"6201720\",\"videos\":[{\"videoThumbnailURL\":\"https://img.alicdn.com/imgextra/i3/2200799288073/O1CN01wvDuz429VU0MKpEdT_!!2200799288073.jpg\",\"interactiveInfo\":{\"userId\":\"2200799288073\",\"interactiveId\":\"495649117\"},\"weexRecommendUrl\":\"https://market.m.taobao.com/apps/market/detailrax/recommenditems.html?spm=a2116h.app.0.0.16d957e9U2bxVj&wh_weex=true&itemId=605314223244\",\"videoId\":\"237813176973\",\"anchors\":[{\"endTime\":\"27000\",\"desc\":\"颜色\"}],\"type\":\"3\",\"spatialVideoDimension\":\"3:4\",\"url\":\"https://cloud.video.taobao.com/play/u/2200799288073/p/2/e/6/t/1/237813176973.mp4?appKey=38829\"}],\"title\":\"简易衣柜现代简约出租房用实木质组装儿童推拉门衣橱收纳柜子卧室\",\"subTitle\":\"升级为双贴面板材，防潮防霉\",\"descUrl\":\"http://h5.m.taobao.com/app/detail/desc.html?_isH5Des=true!id=605314223244&type=0&f=TB1rCmojWL7gK0jSZFB8qtZZpla&sellerType=B\",\"sku\":[{\"quantity\":\"11862\",\"price\":\"350899\",\"propPath\":\"\",\"skuId\":\"0\"},{\"skuName\":\"颜色分类【浅胡桃】宽80高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i2/2200799288073/O1CN01cRRKkP29VU0CmMOne_!!2200799288073.jpg\",\"quantity\":\"490\",\"price\":\"350\",\"propPath\":\"1627207:3232483;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269013\"},{\"skuName\":\"颜色分类【暖白色】宽80高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i3/2200799288073/O1CN01RmsGNV29VU0AfRda6_!!2200799288073.jpg\",\"quantity\":\"493\",\"price\":\"350\",\"propPath\":\"1627207:3232484;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269014\"},{\"skuName\":\"颜色分类【浅胡桃+暖白】宽80高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN01puQzjE29VU0DTCujM_!!2200799288073.jpg\",\"quantity\":\"493\",\"price\":\"350\",\"propPath\":\"1627207:3232481;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269015\"},{\"skuName\":\"颜色分类【柚木色】宽80高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN01neGe4y29VU0ClCq1C_!!2200799288073.jpg\",\"quantity\":\"493\",\"price\":\"350\",\"propPath\":\"1627207:90554;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269036\"},{\"skuName\":\"颜色分类【浅胡桃】宽100高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN01jRWs2U29VU0EydovN_!!2200799288073.jpg\",\"quantity\":\"479\",\"price\":\"440\",\"propPath\":\"1627207:28332;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269016\"},{\"skuName\":\"颜色分类【暖白色】宽100高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i2/2200799288073/O1CN01AfmVMk29VU0FXXE71_!!2200799288073.jpg\",\"quantity\":\"493\",\"price\":\"440\",\"propPath\":\"1627207:30156;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269017\"},{\"skuName\":\"颜色分类【浅胡桃+暖白】宽100高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i1/2200799288073/O1CN01JWrIcW29VU0CJdvN7_!!2200799288073.jpg\",\"quantity\":\"495\",\"price\":\"440\",\"propPath\":\"1627207:60092;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269018\"},{\"skuName\":\"颜色分类【柚木色】宽100高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN01vTTcP429VU0CmOY8I_!!2200799288073.jpg\",\"quantity\":\"497\",\"price\":\"440\",\"propPath\":\"1627207:3232482;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269019\"},{\"skuName\":\"颜色分类【浅胡桃】宽120高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i1/2200799288073/O1CN01Gu6Dc729VU0CkzLNK_!!2200799288073.jpg\",\"quantity\":\"496\",\"price\":\"460\",\"propPath\":\"1627207:3232478;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269020\"},{\"skuName\":\"颜色分类【暖白色】宽120高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN01GatHxN29VU04qxzMX_!!2200799288073.jpg\",\"quantity\":\"495\",\"price\":\"460\",\"propPath\":\"1627207:3232479;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269021\"},{\"skuName\":\"颜色分类【浅胡桃+暖白】宽120高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i2/2200799288073/O1CN01p4s4JW29VU0FXZ6tT_!!2200799288073.jpg\",\"quantity\":\"496\",\"price\":\"460\",\"propPath\":\"1627207:28340;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269022\"},{\"skuName\":\"颜色分类【柚木色】宽120高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN01jucn1g29VU0CkyfuD_!!2200799288073.jpg\",\"quantity\":\"495\",\"price\":\"460\",\"propPath\":\"1627207:28320;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269023\"},{\"skuName\":\"颜色分类【浅胡桃】宽140高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i2/2200799288073/O1CN01Nokaw029VU0ClB5mY_!!2200799288073.jpg\",\"quantity\":\"494\",\"price\":\"540\",\"propPath\":\"1627207:3232480;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269024\"},{\"skuName\":\"颜色分类【暖白色】宽140高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i1/2200799288073/O1CN01RoKzW929VU0C1YAkc_!!2200799288073.jpg\",\"quantity\":\"493\",\"price\":\"540\",\"propPath\":\"1627207:80882;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269025\"},{\"skuName\":\"颜色分类【浅胡桃+暖白】宽140高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i2/2200799288073/O1CN014ZswCQ29VU0EFLiV8_!!2200799288073.jpg\",\"quantity\":\"490\",\"price\":\"540\",\"propPath\":\"1627207:28329;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269026\"},{\"skuName\":\"颜色分类【柚木色】宽140高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i3/2200799288073/O1CN01TcZXjG29VU0ClAl11_!!2200799288073.jpg\",\"quantity\":\"493\",\"price\":\"540\",\"propPath\":\"1627207:28326;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269027\"},{\"skuName\":\"颜色分类【浅胡桃】宽160高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i3/2200799288073/O1CN01oTRa8929VU0E4zZjE_!!2200799288073.jpg\",\"quantity\":\"496\",\"price\":\"639\",\"propPath\":\"1627207:28335;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269028\"},{\"skuName\":\"颜色分类【暖白色】宽160高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN01wF2Coz29VU0Cmapoy_!!2200799288073.jpg\",\"quantity\":\"498\",\"price\":\"639\",\"propPath\":\"1627207:130164;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269029\"},{\"skuName\":\"颜色分类【浅胡桃+暖白】宽160高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN017FoE2429VU0EyvGzk_!!2200799288073.jpg\",\"quantity\":\"500\",\"price\":\"639\",\"propPath\":\"1627207:28338;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269030\"},{\"skuName\":\"颜色分类【柚木色】宽160高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN01KLHvSZ29VU0DTUAS9_!!2200799288073.jpg\",\"quantity\":\"499\",\"price\":\"639\",\"propPath\":\"1627207:132069;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269031\"},{\"skuName\":\"颜色分类【衣柜+顶柜】宽100高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i2/2200799288073/O1CN01jtJKL929VU09UrgAo_!!2200799288073.jpg\",\"quantity\":\"492\",\"price\":\"630\",\"propPath\":\"1627207:107121;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269032\"},{\"skuName\":\"颜色分类【衣柜+顶柜】宽120高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i2/2200799288073/O1CN01Nnxl5T29VU0ASu5FO_!!2200799288073.jpg\",\"quantity\":\"496\",\"price\":\"700\",\"propPath\":\"1627207:28327;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269033\"},{\"skuName\":\"颜色分类【衣柜+顶柜】宽140高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i1/2200799288073/O1CN012p8NER29VU0Afk68u_!!2200799288073.jpg\",\"quantity\":\"497\",\"price\":\"751\",\"propPath\":\"1627207:28324;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269034\"},{\"skuName\":\"颜色分类【衣柜+顶柜】宽160高180深50;门数量2门;是否组装组装\",\"image\":\"//img.alicdn.com/imgextra/i1/2200799288073/O1CN01UN9QxN29VU0G2WcNS_!!2200799288073.jpg\",\"quantity\":\"499\",\"price\":\"899\",\"propPath\":\"1627207:28341;13744110:11555292;122582666:97926\",\"skuId\":\"4240077269035\"}],\"extraPrices\":[{\"sugProm\":\"false\",\"priceTitle\":\"价格\",\"showTitle\":\"true\",\"lineThrough\":\"true\",\"priceText\":\"6201720\"}],\"shopProm\":[{\"activityId\":\"0\",\"iconText\":\"积分\",\"title\":\"购买可得175积分\",\"type\":\"5\",\"content\":[\"购买可得175积分\"]}],\"descImgs\":[\"//assets.alicdn.com/kissy/1.0.0/build/imglazyload/spaceball.gif\",\"//img.alicdn.com/imgextra/i4/T2s4moXH8XXXXXXXXX350475995.png?p=hb_v3_client_1084049_start_top_1\",\"//img.alicdn.com/imgextra/i1/2200799288073/O1CN01z2FgGl29VU0MnUMLy_!!2200799288073.jpg\",\"//img.alicdn.com/imgextra/i1/2200799288073/O1CN01aNxlTq29VU0Q7CMoS_!!2200799288073.jpg\",\"//img.alicdn.com/imgextra/i4/T2s4moXH8XXXXXXXXX350475995.png?p=hb_v3_client_1084049_end_top_1\",\"//img.alicdn.com/imgextra/i3/2200799288073/O1CN01equlQh29VU0ClXVoQ_!!2200799288073.jpg\",\"//img.alicdn.com/imgextra/i2/2200799288073/O1CN01aU83VY29VU0CYC4Fi_!!2200799288073.jpg\",\"//img.alicdn.com/imgextra/i2/2200799288073/O1CN01ALmLm229VU0FWclof_!!2200799288073.jpg\",\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN01cNZaEu29VU0AeiFjX_!!2200799288073.jpg\",\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN01WEsmmL29VU0Ck9NkH_!!2200799288073.jpg\",\"//img.alicdn.com/imgextra/i2/2200799288073/O1CN018iTaAA29VU0CIoMj1_!!2200799288073.jpg\",\"//img.alicdn.com/imgextra/i2/2200799288073/O1CN01XtJBVW29VU0ExrorA_!!2200799288073.jpg\",\"//img.alicdn.com/imgextra/i2/2200799288073/O1CN01p1u12S29VU0EEMpNb_!!2200799288073.jpg\",\"//img.alicdn.com/imgextra/i2/2200799288073/O1CN018LeisG29VU0FWddrl_!!2200799288073.jpg\",\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN01apYcgf29VU0CYC06z_!!2200799288073.jpg\",\"//img.alicdn.com/imgextra/i3/2200799288073/O1CN01H2peHO29VU0AeiSE6_!!2200799288073.jpg\",\"//img.alicdn.com/imgextra/i1/2200799288073/O1CN01ML7R9m29VU0DSNxYB_!!2200799288073.jpg\",\"//img.alicdn.com/imgextra/i1/2200799288073/O1CN01ne4rS329VU0FWdi2J_!!2200799288073.jpg\",\"//img.alicdn.com/imgextra/i2/2200799288073/O1CN01JRDpsE29VU0C0Z5Bi_!!2200799288073.jpg\",\"//img.alicdn.com/imgextra/i3/2200799288073/O1CN01UnMhlP29VU0GU4zYT_!!2200799288073.jpg\",\"//img.alicdn.com/imgextra/i1/2200799288073/O1CN01ppTzor29VU0AefImf_!!2200799288073.jpg\"],\"delivery\":\"0.00\",\"vagueSellCount\":\"117\",\"images\":[\"//img.alicdn.com/imgextra/i3/2200799288073/O1CN01FVyKqo29VU0ONjGn3_!!2200799288073.jpg\",\"//img.alicdn.com/imgextra/i3/2200799288073/O1CN01jwgTJ529VU0FMUPO0_!!2200799288073.jpg\",\"//img.alicdn.com/imgextra/i3/2200799288073/O1CN01mLJs4929VU0GJouD9_!!2200799288073.jpg\",\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN01P7VmA929VU0KsYs5X_!!2200799288073.jpg\",\"//img.alicdn.com/imgextra/i1/2200799288073/O1CN01JQE9b529VU0JyWWfS_!!2200799288073.jpg\"],\"favouriteCount\":\"276\",\"consumerProtection\":{\"displayService\":{\"wyg\":\"false\",\"name\":\"基础保障\",\"services\":[{\"name\":\"假一赔四\",\"icon\":\"//img.alicdn.com/tfs/TB1_YjSjeL2gK0jSZPhXXahvXXa5454.png\",\"serviceId\":\"3839\",\"priority\":\"12900\",\"desc\":[\"正品保障，假一赔四\"]},{\"name\":\"退货运费险\",\"icon\":\"//img.alicdn.com/tfs/TB1_YjSjeL2gK0jSZPhXXahvXXa5454.png\",\"serviceId\":\"3852\",\"priority\":\"6580\",\"desc\":[\"卖家投保退货运费险，负担一定金额退货运费（保单生效以下单显示为准）\"]},{\"name\":\"三年质保\",\"icon\":\"//img.alicdn.com/tfs/TB1_YjSjeL2gK0jSZPhXXahvXXa5454.png\",\"serviceId\":\"5319\",\"priority\":\"6550\",\"desc\":[\"交易成功15天后的三年内出现质量问题，商家在规定时间内通过免费维修或免费更换商品或免费补寄零配件或补偿质保基金等方式保障消费者权益\"]},{\"name\":\"七天无理由退换\",\"icon\":\"//img.alicdn.com/tfs/TB1_YjSjeL2gK0jSZPhXXahvXXa5454.png\",\"serviceId\":\"2972\",\"priority\":\"5130\",\"desc\":[\"满足相应条件时，消费者可申请 “七天无理由退换货”\"]},{\"name\":\"公益宝贝\",\"icon\":\"//img.alicdn.com/tfs/TB1_YjSjeL2gK0jSZPhXXahvXXa5454.png\",\"serviceId\":\"4356\",\"priority\":\"0\",\"desc\":[\"购买该商品,每笔成交都会有相应金额捐赠给公益.感谢您的支持,愿公益的快乐伴随您每一天.\"]}]},\"strength\":\"normal\",\"serviceProtection\":{\"basicService\":{\"name\":\"基础保障\",\"id\":\"204\",\"services\":[{\"name\":\"假一赔四\",\"icon\":\"//img.alicdn.com/tfs/TB1_YjSjeL2gK0jSZPhXXahvXXa5454.png\",\"serviceId\":\"3839\",\"priority\":\"12900\",\"desc\":[\"正品保障，假一赔四\"]},{\"name\":\"退货运费险\",\"icon\":\"//img.alicdn.com/tfs/TB1_YjSjeL2gK0jSZPhXXahvXXa5454.png\",\"serviceId\":\"3852\",\"priority\":\"6580\",\"desc\":[\"卖家投保退货运费险，负担一定金额退货运费（保单生效以下单显示为准）\"]},{\"name\":\"三年质保\",\"icon\":\"//img.alicdn.com/tfs/TB1_YjSjeL2gK0jSZPhXXahvXXa5454.png\",\"serviceId\":\"5319\",\"priority\":\"6550\",\"desc\":[\"交易成功15天后的三年内出现质量问题，商家在规定时间内通过免费维修或免费更换商品或免费补寄零配件或补偿质保基金等方式保障消费者权益\"]},{\"name\":\"七天无理由退换\",\"icon\":\"//img.alicdn.com/tfs/TB1_YjSjeL2gK0jSZPhXXahvXXa5454.png\",\"serviceId\":\"2972\",\"priority\":\"5130\",\"desc\":[\"满足相应条件时，消费者可申请 “七天无理由退换货”\"]},{\"name\":\"公益宝贝\",\"icon\":\"//img.alicdn.com/tfs/TB1_YjSjeL2gK0jSZPhXXahvXXa5454.png\",\"serviceId\":\"4356\",\"priority\":\"0\",\"desc\":[\"购买该商品,每笔成交都会有相应金额捐赠给公益.感谢您的支持,愿公益的快乐伴随您每一天.\"]}]}},\"passValue\":\"none\",\"channel4X\":{\"forced\":\"true\",\"logo\":\"https://img.alicdn.com/tps/TB1oOOvNXXXXXbmaFXXXXXXXXXX3939.png\",\"title\":\"天猫新品\"},\"channel\":{\"forced\":\"true\",\"logo\":\"https://img.alicdn.com/tps/TB1oOOvNXXXXXbmaFXXXXXXXXXX3939.png\",\"title\":\"天猫新品\"},\"params\":\"204:3838,5319,3851,2973,4356\",\"items\":[{\"serviceId\":\"3838\",\"title\":\"假一赔四\",\"type\":\"0\",\"priority\":\"12900\",\"desc\":\"正品保障，假一赔四\"},{\"serviceId\":\"5319\",\"title\":\"三年质保\",\"type\":\"0\",\"priority\":\"6550\",\"desc\":\"交易成功15天后的三年内出现质量问题，商家在规定时间内通过免费维修或免费更换商品或免费补寄零配件或补偿质保基金等方式保障消费者权益\"},{\"serviceId\":\"3851\",\"title\":\"退货运费险\",\"type\":\"0\",\"priority\":\"6504\",\"desc\":\"卖家投保退货运费险，负担一定金额退货运费（保单生效以下单显示为准）\"},{\"serviceId\":\"2973\",\"title\":\"七天无理由退换\",\"type\":\"0\",\"priority\":\"5130\",\"desc\":\"满足相应条件时，消费者可申请 “七天无理由退换货”\"},{\"serviceId\":\"4356\",\"title\":\"公益宝贝\",\"type\":\"0\",\"priority\":\"0\",\"desc\":\"购买该商品,每笔成交都会有相应金额捐赠给公益.感谢您的支持,愿公益的快乐伴随您每一天.\"}]},\"groupProps\":[{\"基本信息\":[{\"品牌\":\"昌盛嘉德\"},{\"型号\":\"07979\"},{\"材质\":\"人造板\"},{\"人造板种类\":\"刨花板/三聚氰胺板\"},{\"图案\":\"其他\"},{\"风格\":\"简约现代\"},{\"颜色分类\":\"【浅胡桃】宽80高180深50 【暖白色】宽80高180深50 【浅胡桃+暖白】宽80高180深50 【柚木色】宽80高180深50 【浅胡桃】宽100高180深50 【暖白色】宽100高180深50 【浅胡桃+暖白】宽100高180深50 【柚木色】宽100高180深50 【浅胡桃】宽120高180深50 【暖白色】宽120高180深50 【浅胡桃+暖白】宽120高180深50 【柚木色】宽120高180深50 【浅胡桃】宽140高180深50 【暖白色】宽140高180深50 【浅胡桃+暖白】宽140高180深50 【柚木色】宽140高180深50 【浅胡桃】宽160高180深50 【暖白色】宽160高180深50 【浅胡桃+暖白】宽160高180深50 【柚木色】宽160高180深50 【衣柜+顶柜】宽100高180深50 【衣柜+顶柜】宽120高180深50 【衣柜+顶柜】宽140高180深50 【衣柜+顶柜】宽160高180深50\"},{\"饰面材质\":\"三聚氰胺板\"},{\"三聚氰氨饰面工艺\":\"光面\"},{\"是否可定制\":\"是\"},{\"门数量\":\"2门\"},{\"附加功能\":\"储藏\"},{\"适用对象\":\"成人\"},{\"开合方式\":\"推拉滑移门\"},{\"产地\":\"江苏省\"},{\"地市\":\"宿迁市\"},{\"区县\":\"宿城区\"},{\"是否组装\":\"组装\"},{\"包装体积\":\"0.6\"},{\"是否可预售\":\"否\"},{\"出租车是否可运输\":\"否\"},{\"设计元素\":\"其他 大师设计\"},{\"款式定位\":\"经济型\"},{\"安装说明详情\":\"提供安装说明书 提供安装说明视频 提供简单安装工具\"},{\"衣柜类型\":\"儿童衣柜 成人衣柜\"}]}],\"url\":\"https://item.taobao.com/item.htm?id=605314223244\",\"rootCategoryId\":\"50008164\",\"commentCount\":\"47\",\"props\":[{\"values\":[{\"vid\":\"3232483\",\"image\":\"//img.alicdn.com/imgextra/i2/2200799288073/O1CN01cRRKkP29VU0CmMOne_!!2200799288073.jpg\",\"name\":\"【浅胡桃】宽80高180深50\"},{\"vid\":\"3232484\",\"image\":\"//img.alicdn.com/imgextra/i3/2200799288073/O1CN01RmsGNV29VU0AfRda6_!!2200799288073.jpg\",\"name\":\"【暖白色】宽80高180深50\"},{\"vid\":\"3232481\",\"image\":\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN01puQzjE29VU0DTCujM_!!2200799288073.jpg\",\"name\":\"【浅胡桃+暖白】宽80高180深50\"},{\"vid\":\"90554\",\"image\":\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN01neGe4y29VU0ClCq1C_!!2200799288073.jpg\",\"name\":\"【柚木色】宽80高180深50\"},{\"vid\":\"28332\",\"image\":\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN01jRWs2U29VU0EydovN_!!2200799288073.jpg\",\"name\":\"【浅胡桃】宽100高180深50\"},{\"vid\":\"30156\",\"image\":\"//img.alicdn.com/imgextra/i2/2200799288073/O1CN01AfmVMk29VU0FXXE71_!!2200799288073.jpg\",\"name\":\"【暖白色】宽100高180深50\"},{\"vid\":\"60092\",\"image\":\"//img.alicdn.com/imgextra/i1/2200799288073/O1CN01JWrIcW29VU0CJdvN7_!!2200799288073.jpg\",\"name\":\"【浅胡桃+暖白】宽100高180深50\"},{\"vid\":\"3232482\",\"image\":\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN01vTTcP429VU0CmOY8I_!!2200799288073.jpg\",\"name\":\"【柚木色】宽100高180深50\"},{\"vid\":\"3232478\",\"image\":\"//img.alicdn.com/imgextra/i1/2200799288073/O1CN01Gu6Dc729VU0CkzLNK_!!2200799288073.jpg\",\"name\":\"【浅胡桃】宽120高180深50\"},{\"vid\":\"3232479\",\"image\":\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN01GatHxN29VU04qxzMX_!!2200799288073.jpg\",\"name\":\"【暖白色】宽120高180深50\"},{\"vid\":\"28340\",\"image\":\"//img.alicdn.com/imgextra/i2/2200799288073/O1CN01p4s4JW29VU0FXZ6tT_!!2200799288073.jpg\",\"name\":\"【浅胡桃+暖白】宽120高180深50\"},{\"vid\":\"28320\",\"image\":\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN01jucn1g29VU0CkyfuD_!!2200799288073.jpg\",\"name\":\"【柚木色】宽120高180深50\"},{\"vid\":\"3232480\",\"image\":\"//img.alicdn.com/imgextra/i2/2200799288073/O1CN01Nokaw029VU0ClB5mY_!!2200799288073.jpg\",\"name\":\"【浅胡桃】宽140高180深50\"},{\"vid\":\"80882\",\"image\":\"//img.alicdn.com/imgextra/i1/2200799288073/O1CN01RoKzW929VU0C1YAkc_!!2200799288073.jpg\",\"name\":\"【暖白色】宽140高180深50\"},{\"vid\":\"28329\",\"image\":\"//img.alicdn.com/imgextra/i2/2200799288073/O1CN014ZswCQ29VU0EFLiV8_!!2200799288073.jpg\",\"name\":\"【浅胡桃+暖白】宽140高180深50\"},{\"vid\":\"28326\",\"image\":\"//img.alicdn.com/imgextra/i3/2200799288073/O1CN01TcZXjG29VU0ClAl11_!!2200799288073.jpg\",\"name\":\"【柚木色】宽140高180深50\"},{\"vid\":\"28335\",\"image\":\"//img.alicdn.com/imgextra/i3/2200799288073/O1CN01oTRa8929VU0E4zZjE_!!2200799288073.jpg\",\"name\":\"【浅胡桃】宽160高180深50\"},{\"vid\":\"130164\",\"image\":\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN01wF2Coz29VU0Cmapoy_!!2200799288073.jpg\",\"name\":\"【暖白色】宽160高180深50\"},{\"vid\":\"28338\",\"image\":\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN017FoE2429VU0EyvGzk_!!2200799288073.jpg\",\"name\":\"【浅胡桃+暖白】宽160高180深50\"},{\"vid\":\"132069\",\"image\":\"//img.alicdn.com/imgextra/i4/2200799288073/O1CN01KLHvSZ29VU0DTUAS9_!!2200799288073.jpg\",\"name\":\"【柚木色】宽160高180深50\"},{\"vid\":\"107121\",\"image\":\"//img.alicdn.com/imgextra/i2/2200799288073/O1CN01jtJKL929VU09UrgAo_!!2200799288073.jpg\",\"name\":\"【衣柜+顶柜】宽100高180深50\"},{\"vid\":\"28327\",\"image\":\"//img.alicdn.com/imgextra/i2/2200799288073/O1CN01Nnxl5T29VU0ASu5FO_!!2200799288073.jpg\",\"name\":\"【衣柜+顶柜】宽120高180深50\"},{\"vid\":\"28324\",\"image\":\"//img.alicdn.com/imgextra/i1/2200799288073/O1CN012p8NER29VU0Afk68u_!!2200799288073.jpg\",\"name\":\"【衣柜+顶柜】宽140高180深50\"},{\"vid\":\"28341\",\"image\":\"//img.alicdn.com/imgextra/i1/2200799288073/O1CN01UN9QxN29VU0G2WcNS_!!2200799288073.jpg\",\"name\":\"【衣柜+顶柜】宽160高180深50\"}],\"name\":\"颜色分类\",\"pid\":\"1627207\"},{\"values\":[{\"vid\":\"11555292\",\"name\":\"2门\"}],\"name\":\"门数量\",\"pid\":\"13744110\"},{\"values\":[{\"vid\":\"97926\",\"name\":\"组装\"}],\"name\":\"是否组装\",\"pid\":\"122582666\"}],\"itemId\":\"605314223244\",\"transmitPrice\":{\"sugProm\":\"false\",\"priceText\":\"350899\"},\"brandId\":\"2999831953\",\"sellCount\":\"117\",\"location\":\"江苏徐州\",\"priceRange\":\"350899\",\"categoryId\":\"50015744\",\"desc\":\"\"}}}";
//        resolveResultByTmall(result);
//        String result = "{\"dataType\":\"app_detail\",\"appCode\":\"alibbAppGoodsDetail\",\"version\":\"1.0\",\"retcode\":\"0000\",\"hasNext\":true,\"page\":0,\"data\":{\"data\":[{\"subData\":\"复购率12.50\",\"mainData\":\"819\",\"mainDataUnit\":\"条\",\"mainDataTitle\":\"近30天成交\"},{\"subData\":\"人均件数101\",\"mainData\":\"8\",\"mainDataUnit\":\"人\",\"mainDataTitle\":\"近30天采购\"}],\"sellerShopUrl\":\"https://m.1688.com/winport/aimi178.html\",\"freight\":\"卖家包邮\",\"sellerName\":\"深圳市华智时代科技源头厂家\",\"mixBegin\":\"0\",\"title\":\"typec耳机适用小米华为谷歌线控带麦耳机数字音频耳机厂家直销\",\"sales\":\"819\",\"preferential\":[{\"summary\":\"每满200减20，可跨店使用\",\"buttonName\":\"查看\",\"displayType\":\"coupon\",\"name\":\"平台券\",\"uiType\":\"CARDACTIVITY\",\"promotionItems\":[{\"summary\":\"每满200减20，可跨店使用\",\"activityUrl\":\"\",\"availablePeriod\":\"有效期：2019.09.17 00:00:002019.09.24 23:59:59\",\"startTime\":\"20190917 00:00:00\",\"detail\":\"每满200减20，可跨店使用\",\"endTime\":\"20190924 23:59:59\",\"extendDetail\":\"\"}],\"type\":\"PLATFORM_COUPON\",\"extraInfo\":{\"mobilePromotionImg\":\"https://img.alicdn.com/tfs/TB1uP6DfoD1gK0jSZFGXXbd3FXa10232.png\",\"pcPromotionImg\":\"https://img.alicdn.com/tfs/TB12GbDfoY1gK0jSZFMXXaWcVXa5016.png\",\"uiType\":\"CARDACTIVITY\"}},{\"summary\":\"单笔订单满500元，或满150件，减10元，减后满500元，免快递运费\",\"buttonName\":\"查看\",\"displayType\":\"text\",\"name\":\"满优惠\",\"uiType\":\"ACTIVITY\",\"promotionItems\":[{\"summary\":\"单笔订单满500元，或满150件，减10元，减后满500元，免快递运费\",\"activityUrl\":\"https://air.1688.com/apps/alim/rax1688sellerpro/port.html?wh_weex=true&sellerId=1000500111&aid=990468184\",\"availablePeriod\":\"有效期：2019.09.02 09:03:482019.09.30 09:03:48\",\"startTime\":\"20190902 09:03:48\",\"detail\":\"单笔订单满500元，或满150件，减10元，减后满500元，免快递运费\",\"endTime\":\"20190930 09:03:48\",\"extendDetail\":\"不免邮区域:海外,台湾,澳门,香港,西藏,云南,贵州,新疆,宁夏,青海,甘肃,陕西,黑龙江,吉林,辽宁,内蒙古,山西,河北,天津,北京,海南\",\"actionName\":\"去凑单\"}],\"type\":\"SHOP_PROMOTION\",\"extraInfo\":{\"uiType\":\"ACTIVITY\"}},{\"summary\":\"本店部分商品满20元或5件可混批采购\",\"buttonName\":\"查看\",\"displayType\":\"coupon\",\"name\":\"混批\",\"uiType\":\"CARD\",\"promotionItems\":[{\"summary\":\"本店部分商品满20元或5件可混批采购\",\"availablePeriod\":\"null\",\"detail\":\"本店部分商品满20元或5件可混批采购\",\"extendDetail\":\"\"}],\"type\":\"MIX_WHOLESALE\",\"extraInfo\":{\"uiType\":\"CARD\"}}],\"descUrl\":\"http://h5.m.taobao.com/app/1688detail/detail/p/index.html?url=http://img01.taobaocdn.com/tfscom/TB122y5fxn1gK0jSZKPXXXvUXXa\",\"displayPrice\":\"￥10.00￥14.50\",\"beginAmount\":\"10\",\"mixAmount\":\"20\",\"images\":[\"https://cbu01.alicdn.com/img/ibank/2019/294/211/11264112492_996554610.jpg\",\"https://cbu01.alicdn.com/img/ibank/2019/150/127/11095721051_996554610.jpg\",\"https://cbu01.alicdn.com/img/ibank/2019/548/941/11035149845_996554610.jpg\",\"https://cbu01.alicdn.com/img/ibank/2019/159/041/11035140951_996554610.jpg\",\"https://cbu01.alicdn.com/img/ibank/2019/193/161/11035161391_996554610.jpg\",\"https://cbu01.alicdn.com/img/ibank/2018/202/445/9277544202_996554610.jpg\",\"https://cbu01.alicdn.com/img/ibank/2018/142/669/9234966241_996554610.jpg\",\"https://cbu01.alicdn.com/img/ibank/2019/904/508/11212805409_996554610.jpg\"],\"totalCanBookCount\":\"2995\",\"videoInfo\":{\"coverUrl\":\"\",\"videoUrl\":{\"android\":\"https://cloud.video.taobao.com/play/u/1000500111/p/2/e/6/t/1/235951233607.mp4\",\"ios\":\"https://cloud.video.taobao.com/play/u/1000500111/p/2/e/6/t/1/235951233607.mp4\"},\"videoId\":\"235951233607\",\"state\":\"6\",\"title\":\"typec耳机适用小米华为谷歌线控带麦耳机数字音频耳机厂家直销\"},\"skuMap\":{\"3.5mm耳机白色（带水晶盒包装）\":{\"specId\":\"a9e8b6dde750ab7ce6fe53793ce7a71d\",\"saleCount\":\"63\",\"price\":\"10.00\",\"specAttrs\":[{\"fid\":\"3216\",\"valueId\":\"4541500292\",\"name\":\"颜色\",\"imgSupport\":\"false\",\"value\":\"3.5mm耳机白色（带水晶盒包装）\",\"order\":\"10\"}],\"discountPrice\":\"10.00\",\"canBookCount\":\"995\",\"discountStandardPrice\":\"\",\"standardPrice\":\"\",\"cargoNumber\":\"\",\"retailPrice\":\"\",\"skuId\":\"4307627886041\",\"storageInfos\":[]},\"TYPEC耳机白色（TYPEC插头）带水晶包装盒\":{\"specId\":\"d8cfc09b300c63e207c8d183e1518354\",\"saleCount\":\"704\",\"price\":\"14.50\",\"specAttrs\":[{\"fid\":\"3216\",\"valueId\":\"4541500293\",\"name\":\"颜色\",\"imgSupport\":\"false\",\"value\":\"TYPEC耳机白色（TYPEC插头）带水晶包装盒\",\"order\":\"10\"}],\"discountPrice\":\"14.50\",\"canBookCount\":\"1000\",\"discountStandardPrice\":\"\",\"standardPrice\":\"\",\"cargoNumber\":\"\",\"retailPrice\":\"\",\"skuId\":\"4307627886042\",\"storageInfos\":[]},\"3.5mm耳机黑色（带水晶盒包装\":{\"specId\":\"6df247da15b5702a4414d1f2e330f32d\",\"saleCount\":\"57\",\"price\":\"10.00\",\"specAttrs\":[{\"fid\":\"3216\",\"valueId\":\"4541500294\",\"name\":\"颜色\",\"imgSupport\":\"false\",\"value\":\"3.5mm耳机黑色（带水晶盒包装\",\"order\":\"10\"}],\"discountPrice\":\"10.00\",\"canBookCount\":\"1000\",\"discountStandardPrice\":\"\",\"standardPrice\":\"\",\"cargoNumber\":\"\",\"retailPrice\":\"\",\"skuId\":\"4307627886043\",\"storageInfos\":[]}},\"sellerUserId\":\"1000500111\",\"services\":[{\"description\":\"该卖家承诺在支付成功次日零时起7天内为您发货。\",\"serviceName\":\"活动7天发货\"},{\"description\":\"该卖家已开通15天包换服务，您可在签收货物后的15天内更换商品。\",\"serviceName\":\"15天包换\"},{\"description\":\"该产品已支持诚e赊， 为买家提供确认收货后30天免费赊账。\",\"serviceName\":\"免费赊账\"}],\"sellerMemberId\":\"aimi178\",\"showPriceRanges\":[{\"startAmount\":\"10\",\"price\":\"10.00\"},{\"startAmount\":\"10\",\"price\":\"14.50\"}],\"itemId\":\"575359808887\",\"unit\":\"条\",\"fenxiao\":{\"data\":[{\"subData\":\"复购率12.50\",\"mainData\":\"819\",\"mainDataUnit\":\"条\",\"mainDataTitle\":\"近30天成交\"},{\"subData\":\"人均件数101\",\"mainData\":\"8\",\"mainDataUnit\":\"人\",\"mainDataTitle\":\"近30天采购\"}],\"sellerShopUrl\":\"https://m.1688.com/winport/aimi178.html\",\"sellerName\":\"深圳市华智时代科技源头厂家\",\"mixBegin\":\"0\",\"title\":\"typec耳机适用小米华为谷歌线控带麦耳机数字音频耳机厂家直销\",\"sales\":\"819\",\"preferential\":[{\"summary\":\"每满200减20，可跨店使用\",\"buttonName\":\"查看\",\"displayType\":\"coupon\",\"name\":\"平台券\",\"uiType\":\"CARDACTIVITY\",\"promotionItems\":[{\"summary\":\"每满200减20，可跨店使用\",\"activityUrl\":\"\",\"availablePeriod\":\"有效期：2019.09.17 00:00:002019.09.24 23:59:59\",\"startTime\":\"20190917 00:00:00\",\"detail\":\"每满200减20，可跨店使用\",\"endTime\":\"20190924 23:59:59\",\"extendDetail\":\"\"}],\"type\":\"PLATFORM_COUPON\",\"extraInfo\":{\"mobilePromotionImg\":\"https://img.alicdn.com/tfs/TB1uP6DfoD1gK0jSZFGXXbd3FXa10232.png\",\"pcPromotionImg\":\"https://img.alicdn.com/tfs/TB12GbDfoY1gK0jSZFMXXaWcVXa5016.png\",\"uiType\":\"CARDACTIVITY\"}},{\"summary\":\"单笔订单满500元，或满150件，减10元，减后满500元，免快递运费\",\"buttonName\":\"查看\",\"displayType\":\"text\",\"name\":\"满优惠\",\"uiType\":\"ACTIVITY\",\"promotionItems\":[{\"summary\":\"单笔订单满500元，或满150件，减10元，减后满500元，免快递运费\",\"activityUrl\":\"https://air.1688.com/apps/alim/rax1688sellerpro/port.html?wh_weex=true&sellerId=1000500111&aid=990468184\",\"availablePeriod\":\"有效期：2019.09.02 09:03:482019.09.30 09:03:48\",\"startTime\":\"20190902 09:03:48\",\"detail\":\"单笔订单满500元，或满150件，减10元，减后满500元，免快递运费\",\"endTime\":\"20190930 09:03:48\",\"extendDetail\":\"不免邮区域:海外,台湾,澳门,香港,西藏,云南,贵州,新疆,宁夏,青海,甘肃,陕西,黑龙江,吉林,辽宁,内蒙古,山西,河北,天津,北京,海南\",\"actionName\":\"去凑单\"}],\"type\":\"SHOP_PROMOTION\",\"extraInfo\":{\"uiType\":\"ACTIVITY\"}},{\"summary\":\"本店部分商品满20元或5件可混批采购\",\"buttonName\":\"查看\",\"displayType\":\"coupon\",\"name\":\"混批\",\"uiType\":\"CARD\",\"promotionItems\":[{\"summary\":\"本店部分商品满20元或5件可混批采购\",\"availablePeriod\":\"null\",\"detail\":\"本店部分商品满20元或5件可混批采购\",\"extendDetail\":\"\"}],\"type\":\"MIX_WHOLESALE\",\"extraInfo\":{\"uiType\":\"CARD\"}}],\"descUrl\":\"http://h5.m.taobao.com/app/1688detail/detail/p/index.html?url=http://img01.taobaocdn.com/tfscom/TB122y5fxn1gK0jSZKPXXXvUXXa\",\"displayPrice\":\"￥10.00￥14.50\",\"beginAmount\":\"1\",\"mixAmount\":\"20\",\"images\":[\"https://cbu01.alicdn.com/img/ibank/2019/294/211/11264112492_996554610.jpg\",\"https://cbu01.alicdn.com/img/ibank/2019/150/127/11095721051_996554610.jpg\",\"https://cbu01.alicdn.com/img/ibank/2019/548/941/11035149845_996554610.jpg\",\"https://cbu01.alicdn.com/img/ibank/2019/159/041/11035140951_996554610.jpg\",\"https://cbu01.alicdn.com/img/ibank/2019/193/161/11035161391_996554610.jpg\",\"https://cbu01.alicdn.com/img/ibank/2018/202/445/9277544202_996554610.jpg\",\"https://cbu01.alicdn.com/img/ibank/2018/142/669/9234966241_996554610.jpg\",\"https://cbu01.alicdn.com/img/ibank/2019/904/508/11212805409_996554610.jpg\"],\"totalCanBookCount\":\"478020\",\"videoInfo\":{\"coverUrl\":\"\",\"videoUrl\":{\"android\":\"https://cloud.video.taobao.com/play/u/1000500111/p/2/e/6/t/1/235951233607.mp4\",\"ios\":\"https://cloud.video.taobao.com/play/u/1000500111/p/2/e/6/t/1/235951233607.mp4\"},\"videoId\":\"235951233607\",\"state\":\"6\",\"title\":\"typec耳机适用小米华为谷歌线控带麦耳机数字音频耳机厂家直销\"},\"skuMap\":{\"3.5mm耳机白色（带水晶盒包装）\":{\"specId\":\"a9e8b6dde750ab7ce6fe53793ce7a71d\",\"price\":\"10.00\",\"saleCount\":\"0\",\"discountPrice\":\"10.00\",\"canBookCount\":\"14650\",\"skuId\":\"4307627886041\"},\"TYPEC耳机白色（TYPEC插头）带水晶包装盒\":{\"specId\":\"d8cfc09b300c63e207c8d183e1518354\",\"price\":\"14.50\",\"saleCount\":\"0\",\"discountPrice\":\"14.50\",\"canBookCount\":\"383875\",\"skuId\":\"4307627886042\"},\"3.5mm耳机黑色（带水晶盒包装\":{\"specId\":\"6df247da15b5702a4414d1f2e330f32d\",\"price\":\"10.00\",\"saleCount\":\"0\",\"discountPrice\":\"10.00\",\"canBookCount\":\"79495\",\"skuId\":\"4307627886043\"}},\"sellerUserId\":\"1000500111\",\"services\":[{\"description\":\"该卖家承诺在支付成功次日零时起7天内为您发货。\",\"serviceName\":\"活动7天发货\"},{\"description\":\"该服务仅向淘货源市场买家提供。卖家向特定买家承诺该商品8天无理由包退货。\",\"serviceName\":\"8天无理由包退（仅向淘货源买家提供）\"},{\"description\":\"该卖家已开通15天包换服务，您可在签收货物后的15天内更换商品。\",\"serviceName\":\"15天包换\"},{\"description\":\"该产品已支持诚e赊， 为买家提供确认收货后30天免费赊账。\",\"serviceName\":\"免费赊账\"}],\"sellerMemberId\":\"aimi178\",\"showPriceRanges\":[],\"itemId\":\"575359808887\",\"unit\":\"条\",\"skuProps\":[{\"prop\":\"颜色\",\"value\":[{\"imageUrl\":\"https://cbu01.alicdn.com/img/ibank/2018/142/669/9234966241_996554610.jpg\",\"name\":\"3.5mm耳机白色（带水晶盒包装）\"},{\"imageUrl\":\"https://cbu01.alicdn.com/img/ibank/2018/202/445/9277544202_996554610.jpg\",\"name\":\"3.5mm耳机黑色（带水晶盒包装\"},{\"imageUrl\":\"https://cbu01.alicdn.com/img/ibank/2019/904/508/11212805409_996554610.jpg\",\"name\":\"TYPEC耳机白色（TYPEC插头）带水晶包装盒\"}]}],\"attributes\":[\"品牌:华智时代\",\"货号:HZMI031\",\"型号:HZMI031\",\"外观类型:入耳式\",\"技术类别:动圈式\",\"传送方式:有线\",\"灵敏度:108\",\"线长:120\",\"是否原装:原装\",\"兼容平台:iOS\",\"颜色:3.5mm耳机白色（带水晶盒包装）,3.5mm耳机黑色（带水晶盒包装,TYPEC耳机白色（TYPEC插头）带水晶包装盒\",\"主要下游平台:wish,亚马逊,速卖通,独立站,LAZADA,ebay\",\"主要销售地区:东南亚,东北亚,欧洲,中东,非洲,北美,南美\",\"有可授权的自有品牌:是\",\"是否跨境货源:是\",\"支持订制:不支持\"],\"location\":\"广东 深圳\",\"categoryId\":\"1034014\"},\"skuProps\":[{\"prop\":\"颜色\",\"value\":[{\"imageUrl\":\"https://cbu01.alicdn.com/img/ibank/2018/142/669/9234966241_996554610.jpg\",\"name\":\"3.5mm耳机白色（带水晶盒包装）\"},{\"imageUrl\":\"https://cbu01.alicdn.com/img/ibank/2018/202/445/9277544202_996554610.jpg\",\"name\":\"3.5mm耳机黑色（带水晶盒包装\"},{\"imageUrl\":\"https://cbu01.alicdn.com/img/ibank/2019/904/508/11212805409_996554610.jpg\",\"name\":\"TYPEC耳机白色（TYPEC插头）带水晶包装盒\"}]}],\"attributes\":[\"品牌:华智时代\",\"货号:HZMI031\",\"型号:HZMI031\",\"外观类型:入耳式\",\"技术类别:动圈式\",\"传送方式:有线\",\"灵敏度:108\",\"线长:120\",\"是否原装:原装\",\"兼容平台:iOS\",\"颜色:3.5mm耳机白色（带水晶盒包装）,3.5mm耳机黑色（带水晶盒包装,TYPEC耳机白色（TYPEC插头）带水晶包装盒\",\"主要下游平台:wish,亚马逊,速卖通,独立站,LAZADA,ebay\",\"主要销售地区:东南亚,东北亚,欧洲,中东,非洲,北美,南美\",\"有可授权的自有品牌:是\",\"是否跨境货源:是\",\"支持订制:不支持\"],\"location\":\"广东 深圳\",\"bigPromAtmModel\":{\"saleCount\":\"819\",\"activityName\":\"9月商人节\",\"countdown\":\"636131964\",\"priceModel\":{\"originalPrices\":[{\"startAmount\":\"10\",\"price\":\"10.00\"},{\"startAmount\":\"10\",\"price\":\"14.50\"}],\"begainUnit\":\"起批\",\"currentPrices\":[{\"startAmount\":\"10\",\"price\":\"10.00\"},{\"startAmount\":\"10\",\"price\":\"14.50\"}],\"hasPromPrice\":\"true\",\"memberPrice\":\"false\",\"priceType\":\"skuPrice\"},\"beforePro\":\"false\",\"bkImg\":\"https://cbu01.alicdn.com/img/ibank/2019/118/483/12059384811.jpg\"},\"categoryId\":\"1034014\",\"desc\":\"\"}}";
//        resolveResultBy1688(result);
        String result = "{\"dataType\":\"detail\",\"appCode\":\"jdGoodsDetail\",\"version\":\"1.0\",\"retcode\":\"2000\",\"hasNext\":false,\"page\":0,\"data\":{\"seller\":{\"sellerId\":1000000127,\"shopName\":\"Apple产品京东自营旗舰店\",\"location\":null,\"shopUrl\":\"http://apple.jd.com/\"},\"item\":{\"brandName\":\"Apple\",\"images\":[\"http://img30.360buyimg.com/popWaterMark/jfs/t1/3405/18/3537/69901/5b997c0aE5dc8ed9f/a2c208410ae84d1f.jpg\",\"http://img30.360buyimg.com/popWaterMark/jfs/t1/4394/21/3522/68010/5b997c0aE91c7291d/b8494bf281991f94.jpg\",\"http://img30.360buyimg.com/popWaterMark/jfs/t1/14660/26/3510/75469/5c26e061E76085e31/ef55ef9e2bf8cb84.jpg\"],\"originalPrice\":\"6999.00\",\"venderId\":\"1000000127\",\"saleProp\":{\"1\":\"颜色\",\"2\":\"版本\",\"3\":\"内存\"},\"itemId\":\"100000177760\",\"descriptionId\":\"100000177760\",\"price\":\"5999.00\",\"skuProps\":{\"1\":[\"蓝色\",\"黑色\",\"白色\",\"黄色\",\"珊瑚色\",\"红色\"],\"2\":[\"公开版\",\"移动4G优先版\",\"换修无忧版\",\"原厂延保版\"],\"3\":[\"64GB\",\"128GB\",\"256GB\"]},\"brandId\":\"14026\",\"name\":\"Apple iPhone XR (A2108) 128GB 黑色 移动联通电信4G手机 双卡双待\",\"attributes\":[{\"主体\":[{\"上市年份\":\"2018年\"},{\"品牌\":\"Apple\"},{\"型号\":\"iPhone XR\"},{\"上市月份\":\"10月\"},{\"入网型号\":\"A2108\"}]},{\"辅助功能\":[{\"常用功能\":\"其他\"}]},{\"手机特性\":[{\"陀螺仪\":\"支持\"},{\"GPS\":\"支持\"},{\"指纹识别\":\"不支持\"}]},{\"基本信息\":[{\"机身宽度（mm）\":\"75.7\"},{\"机身厚度（mm）\":\"8.3\"},{\"机身长度（mm）\":\"150.9\"},{\"运营商标志或内容\":\"其他\"},{\"机身重量（g）\":\"194\"},{\"机身颜色\":\"黑色\"},{\"机身材质分类\":\"其他\"}]},{\"网络支持\":[{\"是否支持同时使用联通卡\":\"不支持\"},{\"3G/2G网络\":\"\"},{\"4G网络\":\"4G：移动（TDLTE)\"},{\"4G网络\":\"4G：联通(TDLTE)\"},{\"4G网络\":\"4G：电信(FDDLTE)\"},{\"4G网络\":\"4G：联通(FDDLTE)\"},{\"最大支持SIM卡数量\":\"2个\"},{\"双卡机类型\":\"双卡双待\"},{\"SIM卡类型\":\"Nano SIM\"},{\"网络频率（2G/3G）\":\"\"}]},{\"数据接口\":[{\"充电接口类型\":\"Lightning（iPhone）\"},{\"耳机接口类型\":\"Lightning\"},{\"数据传输接口\":\"WIFI\"},{\"数据传输接口\":\"WiFi热点\"},{\"数据传输接口\":\"蓝牙\"},{\"NFC/NFC模式\":\"其他\"}]},{\"电池信息\":[{\"充电器\":\"其他\"},{\"电池是否可拆卸\":\"否\"},{\"电池容量（mAh）\":\"以官网信息为准\"}]},{\"前置摄像头\":[{\"前置摄像头\":\"700万像素\"},{\"前摄光圈大小\":\"f/2.2\"}]},{\"后置摄像头\":[{\"后置摄像头\":\"1200万像素\"},{\"摄像头数量\":\"1个\"}]},{\"存储\":[{\"存储卡\":\"不支持\"},{\"ROM\":\"128GB\"},{\"RAM\":\"其他\"}]},{\"主芯片\":[{\"CPU型号\":\"其他\"},{\"CPU核数\":\"其他\"},{\"CPU品牌\":\"以官网信息为准\"},{\"CPU频率\":\"其他\"}]},{\"操作系统\":[{\"操作系统\":\"ios\"}]},{\"屏幕\":[{\"主屏幕尺寸（英寸）\":\"6.1英寸\"},{\"分辨率\":\"1792828\"},{\"屏幕材质类型\":\"LCD\"}]}],\"sku\":[{\"1\":\"红色\",\"2\":\"移动4G优先版\",\"3\":\"128GB\",\"originalPrice\":\"6499.00\",\"price\":\"5999.00\",\"skuId\":\"100002539276\"},{\"1\":\"黑色\",\"2\":\"移动4G优先版\",\"3\":\"128GB\",\"originalPrice\":\"6499.00\",\"price\":\"5999.00\",\"skuId\":\"100001860805\"},{\"1\":\"红色\",\"2\":\"移动4G优先版\",\"3\":\"64GB\",\"originalPrice\":\"5999.00\",\"price\":\"5499.00\",\"skuId\":\"100001860803\"},{\"1\":\"白色\",\"2\":\"移动4G优先版\",\"3\":\"64GB\",\"originalPrice\":\"5999.00\",\"price\":\"5499.00\",\"skuId\":\"100001860787\"},{\"1\":\"珊瑚色\",\"2\":\"移动4G优先版\",\"3\":\"128GB\",\"originalPrice\":\"6499.00\",\"price\":\"5999.00\",\"skuId\":\"100001860785\"},{\"1\":\"黑色\",\"2\":\"移动4G优先版\",\"3\":\"64GB\",\"originalPrice\":\"5999.00\",\"price\":\"5499.00\",\"skuId\":\"100001860781\"},{\"1\":\"白色\",\"2\":\"移动4G优先版\",\"3\":\"128GB\",\"originalPrice\":\"6499.00\",\"price\":\"5999.00\",\"skuId\":\"100001860779\"},{\"1\":\"黄色\",\"2\":\"移动4G优先版\",\"3\":\"128GB\",\"originalPrice\":\"6499.00\",\"price\":\"5999.00\",\"skuId\":\"100001860777\"},{\"1\":\"蓝色\",\"2\":\"移动4G优先版\",\"3\":\"128GB\",\"originalPrice\":\"6499.00\",\"price\":\"5999.00\",\"skuId\":\"100001860775\"},{\"1\":\"黑色\",\"2\":\"原厂延保版\",\"3\":\"64GB\",\"originalPrice\":\"7068.00\",\"price\":\"7068.00\",\"skuId\":\"100001165304\"},{\"1\":\"蓝色\",\"2\":\"原厂延保版\",\"3\":\"64GB\",\"originalPrice\":\"7068.00\",\"price\":\"7068.00\",\"skuId\":\"100001165302\"},{\"1\":\"珊瑚色\",\"2\":\"原厂延保版\",\"3\":\"64GB\",\"originalPrice\":\"7068.00\",\"price\":\"7068.00\",\"skuId\":\"100001165284\"},{\"1\":\"蓝色\",\"2\":\"原厂延保版\",\"3\":\"128GB\",\"originalPrice\":\"7568.00\",\"price\":\"7568.00\",\"skuId\":\"100001165282\"},{\"1\":\"白色\",\"2\":\"原厂延保版\",\"3\":\"64GB\",\"originalPrice\":\"7068.00\",\"price\":\"7068.00\",\"skuId\":\"100001165264\"},{\"1\":\"红色\",\"2\":\"原厂延保版\",\"3\":\"128GB\",\"originalPrice\":\"7568.00\",\"price\":\"7568.00\",\"skuId\":\"100001165262\"},{\"1\":\"白色\",\"2\":\"原厂延保版\",\"3\":\"256GB\",\"originalPrice\":\"8568.00\",\"price\":\"8568.00\",\"skuId\":\"100001165260\"},{\"1\":\"黑色\",\"2\":\"原厂延保版\",\"3\":\"256GB\",\"originalPrice\":\"8568.00\",\"price\":\"8568.00\",\"skuId\":\"100001165258\"},{\"1\":\"白色\",\"2\":\"换修无忧版\",\"3\":\"128GB\",\"originalPrice\":\"6248.00\",\"price\":\"6148.00\",\"skuId\":\"100001165256\"},{\"1\":\"珊瑚色\",\"2\":\"换修无忧版\",\"3\":\"128GB\",\"originalPrice\":\"6248.00\",\"price\":\"6148.00\",\"skuId\":\"100001165254\"},{\"1\":\"红色\",\"2\":\"换修无忧版\",\"3\":\"128GB\",\"originalPrice\":\"6248.00\",\"price\":\"6148.00\",\"skuId\":\"100001165252\"},{\"1\":\"黄色\",\"2\":\"换修无忧版\",\"3\":\"256GB\",\"originalPrice\":\"7148.00\",\"price\":\"7148.00\",\"skuId\":\"100001165250\"},{\"1\":\"珊瑚色\",\"2\":\"换修无忧版\",\"3\":\"256GB\",\"originalPrice\":\"7148.00\",\"price\":\"7148.00\",\"skuId\":\"100001165248\"},{\"1\":\"黄色\",\"2\":\"原厂延保版\",\"3\":\"128GB\",\"originalPrice\":\"7568.00\",\"price\":\"7568.00\",\"skuId\":\"100001165238\"},{\"1\":\"珊瑚色\",\"2\":\"原厂延保版\",\"3\":\"128GB\",\"originalPrice\":\"7568.00\",\"price\":\"7568.00\",\"skuId\":\"100001165236\"},{\"1\":\"黑色\",\"2\":\"换修无忧版\",\"3\":\"64GB\",\"originalPrice\":\"5748.00\",\"price\":\"5648.00\",\"skuId\":\"100001165234\"},{\"1\":\"红色\",\"2\":\"换修无忧版\",\"3\":\"64GB\",\"originalPrice\":\"5748.00\",\"price\":\"5648.00\",\"skuId\":\"100001165220\"},{\"1\":\"蓝色\",\"2\":\"换修无忧版\",\"3\":\"128GB\",\"originalPrice\":\"7048.00\",\"price\":\"6148.00\",\"skuId\":\"100001165218\"},{\"1\":\"白色\",\"2\":\"换修无忧版\",\"3\":\"256GB\",\"originalPrice\":\"7248.00\",\"price\":\"7148.00\",\"skuId\":\"100001165216\"},{\"1\":\"黑色\",\"2\":\"换修无忧版\",\"3\":\"256GB\",\"originalPrice\":\"7248.00\",\"price\":\"7148.00\",\"skuId\":\"100001165214\"},{\"1\":\"黄色\",\"2\":\"原厂延保版\",\"3\":\"64GB\",\"originalPrice\":\"7068.00\",\"price\":\"7068.00\",\"skuId\":\"100000942721\"},{\"1\":\"红色\",\"2\":\"原厂延保版\",\"3\":\"64GB\",\"originalPrice\":\"7068.00\",\"price\":\"7068.00\",\"skuId\":\"100000942719\"},{\"1\":\"白色\",\"2\":\"原厂延保版\",\"3\":\"128GB\",\"originalPrice\":\"7568.00\",\"price\":\"7568.00\",\"skuId\":\"100000942717\"},{\"1\":\"黑色\",\"2\":\"原厂延保版\",\"3\":\"128GB\",\"originalPrice\":\"7568.00\",\"price\":\"7568.00\",\"skuId\":\"100000942715\"},{\"1\":\"珊瑚色\",\"2\":\"原厂延保版\",\"3\":\"256GB\",\"originalPrice\":\"8468.00\",\"price\":\"8468.00\",\"skuId\":\"100000942713\"},{\"1\":\"红色\",\"2\":\"原厂延保版\",\"3\":\"256GB\",\"originalPrice\":\"8568.00\",\"price\":\"8568.00\",\"skuId\":\"100000942711\"},{\"1\":\"白色\",\"2\":\"换修无忧版\",\"3\":\"64GB\",\"originalPrice\":\"5748.00\",\"price\":\"5648.00\",\"skuId\":\"100000942709\"},{\"1\":\"蓝色\",\"2\":\"换修无忧版\",\"3\":\"64GB\",\"originalPrice\":\"5748.00\",\"price\":\"5648.00\",\"skuId\":\"100000942707\"},{\"1\":\"黑色\",\"2\":\"换修无忧版\",\"3\":\"128GB\",\"originalPrice\":\"6248.00\",\"price\":\"6148.00\",\"skuId\":\"100000942705\"},{\"1\":\"红色\",\"2\":\"换修无忧版\",\"3\":\"256GB\",\"originalPrice\":\"7248.00\",\"price\":\"7148.00\",\"skuId\":\"100000942703\"},{\"1\":\"蓝色\",\"2\":\"原厂延保版\",\"3\":\"256GB\",\"originalPrice\":\"8468.00\",\"price\":\"8468.00\",\"skuId\":\"100000942701\"},{\"1\":\"黄色\",\"2\":\"原厂延保版\",\"3\":\"256GB\",\"originalPrice\":\"8468.00\",\"price\":\"8468.00\",\"skuId\":\"100000942699\"},{\"1\":\"黄色\",\"2\":\"换修无忧版\",\"3\":\"64GB\",\"originalPrice\":\"5748.00\",\"price\":\"5648.00\",\"skuId\":\"100000942697\"},{\"1\":\"珊瑚色\",\"2\":\"换修无忧版\",\"3\":\"64GB\",\"originalPrice\":\"5748.00\",\"price\":\"5648.00\",\"skuId\":\"100000942695\"},{\"1\":\"黄色\",\"2\":\"换修无忧版\",\"3\":\"128GB\",\"originalPrice\":\"6248.00\",\"price\":\"6148.00\",\"skuId\":\"100000942693\"},{\"1\":\"蓝色\",\"2\":\"换修无忧版\",\"3\":\"256GB\",\"originalPrice\":\"7148.00\",\"price\":\"7148.00\",\"skuId\":\"100000942691\"},{\"1\":\"红色\",\"2\":\"公开版\",\"3\":\"256GB\",\"originalPrice\":\"7899.00\",\"price\":\"7299.00\",\"skuId\":\"100000287165\"},{\"1\":\"红色\",\"2\":\"公开版\",\"3\":\"128GB\",\"originalPrice\":\"6999.00\",\"price\":\"5999.00\",\"skuId\":\"100000287163\"},{\"1\":\"蓝色\",\"2\":\"公开版\",\"3\":\"128GB\",\"originalPrice\":\"6999.00\",\"price\":\"5999.00\",\"skuId\":\"100000287141\"},{\"1\":\"黄色\",\"2\":\"公开版\",\"3\":\"64GB\",\"originalPrice\":\"6499.00\",\"price\":\"5499.00\",\"skuId\":\"100000287121\"},{\"1\":\"白色\",\"2\":\"公开版\",\"3\":\"128GB\",\"originalPrice\":\"6999.00\",\"price\":\"5999.00\",\"skuId\":\"100000287115\"},{\"1\":\"白色\",\"2\":\"公开版\",\"3\":\"256GB\",\"originalPrice\":\"7899.00\",\"price\":\"7099.00\",\"skuId\":\"100000177826\"},{\"1\":\"黄色\",\"2\":\"公开版\",\"3\":\"256GB\",\"originalPrice\":\"7899.00\",\"price\":\"7099.00\",\"skuId\":\"100000177802\"},{\"1\":\"珊瑚色\",\"2\":\"公开版\",\"3\":\"64GB\",\"originalPrice\":\"6499.00\",\"price\":\"5599.00\",\"skuId\":\"100000177788\"},{\"1\":\"蓝色\",\"2\":\"公开版\",\"3\":\"64GB\",\"originalPrice\":\"6499.00\",\"price\":\"5599.00\",\"skuId\":\"100000177786\"},{\"1\":\"黄色\",\"2\":\"公开版\",\"3\":\"128GB\",\"originalPrice\":\"6999.00\",\"price\":\"6099.00\",\"skuId\":\"100000177782\"},{\"1\":\"珊瑚色\",\"2\":\"公开版\",\"3\":\"256GB\",\"originalPrice\":\"7899.00\",\"price\":\"7099.00\",\"skuId\":\"100000177776\"},{\"1\":\"蓝色\",\"2\":\"公开版\",\"3\":\"256GB\",\"originalPrice\":\"7899.00\",\"price\":\"7099.00\",\"skuId\":\"100000177774\"},{\"1\":\"黑色\",\"2\":\"公开版\",\"3\":\"256GB\",\"originalPrice\":\"7899.00\",\"price\":\"7299.00\",\"skuId\":\"100000177772\"},{\"1\":\"珊瑚色\",\"2\":\"公开版\",\"3\":\"128GB\",\"originalPrice\":\"6999.00\",\"price\":\"6099.00\",\"skuId\":\"100000177770\"},{\"1\":\"红色\",\"2\":\"公开版\",\"3\":\"64GB\",\"originalPrice\":\"6499.00\",\"price\":\"5599.00\",\"skuId\":\"100000177766\"},{\"1\":\"黑色\",\"2\":\"公开版\",\"3\":\"128GB\",\"originalPrice\":\"6999.00\",\"price\":\"5999.00\",\"skuId\":\"100000177760\"},{\"1\":\"黑色\",\"2\":\"公开版\",\"3\":\"64GB\",\"originalPrice\":\"6499.00\",\"price\":\"5499.00\",\"skuId\":\"100000177758\"},{\"1\":\"白色\",\"2\":\"公开版\",\"3\":\"64GB\",\"originalPrice\":\"6499.00\",\"price\":\"5499.00\",\"skuId\":\"100000177756\"}],\"desc\":\"\"}}}";
        resolveResultByJD(result);
    }

    /**
     * 根据url解析所属第三方
     * detail.tmall.com
     * www.jd.com  item.jd.com
     * item.taobao.com
     * detail.1688.com
     *
     * @return 1.淘宝 2-天猫 3-1688 4-京东
     */
    public static Integer getDomain(String url) {
        log.info("===getItemIdByUrl==={}", url);
        Integer result = null;
        String domain = HttpParamUtil.getDomain(url);
        if (domain.contains("tmall.com")) {
            result = 2;
        } else if (domain.contains("jd.com")) {
            result = 4;
        } else if (domain.contains("taobao.com")) {
            result = 1;
        } else if (domain.contains("1688.com")) {
            result = 3;
        }
        log.info("===result==={}", result);
        if (null == result) {
            throw new ApiException("url有误");
        }
        return result;
    }

    /**
     * 根据url解析商品详情id
     * detail.tmall.com
     * www.jd.com  item.jd.com
     * item.taobao.com
     * detail.1688.com
     *
     * @return 1.淘宝 2-天猫 3-1688 4-京东
     */
    public static String getItemIdByUrl(String url, Integer domainType) {
        log.info("===getItemIdByUrl==={}", url);
        String returnVal = "";
        Map paramMap = null;
        if (1 == domainType || 2 == domainType) {
            paramMap = HttpParamUtil.getParameter(url);
            returnVal = (String) paramMap.get("id");
        } else if (3 == domainType || 4 == domainType) {
            String urlPath = HttpParamUtil.getUrlPath(url);
            if (StringUtils.isEmpty(urlPath)) {
                throw new ApiException("url有误");
            }
            String[] paths = urlPath.split("/");
            returnVal = paths[paths.length - 1].split("\\.")[0];//xxx.html
        }
        log.info("===returnValue==={}", returnVal);
        return returnVal;
    }

    private String handleUrl(String url) {
        String[] urls = url.split("//");
        if (StringUtils.isEmpty(urls[0]) || (!"http:".equals(urls[0]) && !"https:".equals(urls[0]))) {
            url = "https:" + url;
        }
        return url;
    }

    /**
     * 下载图片保存到本地
     */
    public String download(String imgPath) {
        URL url = null;
        try {
            imgPath = handleUrl(imgPath);
            url = new URL(imgPath);
            // 打开连接
            URLConnection con = url.openConnection();
            //设置请求超时为5s
            con.setConnectTimeout(5 * 1000);
            // 输入流
            InputStream is = con.getInputStream();
            // 1K的数据缓冲
            byte[] bs = new byte[1024];
            // 读取到的数据长度
            int len;
            // 输出的文件流
            File sf = new File(StringUtils.isEmpty(IMG_PATH) ? "D:/banker_img/" : IMG_PATH);
            if (!sf.exists()) {
                sf.mkdirs();
            }
            //保存路径和文件名，图片类型
            String filePath = sf.getPath() + File.separator + System.currentTimeMillis() + ".png";
            OutputStream os = new FileOutputStream(filePath);
            // 开始读取
            while ((len = is.read(bs)) != -1) {
                //开始保存
                os.write(bs, 0, len);
            }
            // 完毕，关闭所有链接
            os.close();
            is.close();
            return filePath;
        } catch (Exception e) {
            e.printStackTrace();
            log.error("===下载图片异常==={}", e);
        }
        return null;
    }

    public static MultipartFile fileToMultipartFile(File file) throws URISyntaxException {
        FileItem fileItem = createFileItem(file);
        MultipartFile multipartFile = new CommonsMultipartFile(fileItem);
        return multipartFile;
    }

    private static FileItem createFileItem(File file) {
        FileItemFactory factory = new DiskFileItemFactory(16, null);
        FileItem item = factory.createItem("textField", "text/plain", true, file.getName());
        int bytesRead = 0;
        byte[] buffer = new byte[8192];
        try {
            FileInputStream fis = new FileInputStream(file);
            OutputStream os = item.getOutputStream();
            while ((bytesRead = fis.read(buffer, 0, 8192)) != -1) {
                os.write(buffer, 0, bytesRead);
            }
            os.close();
            fis.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
        return item;
    }
}
